Spaces:
Running
Running
Update upload.sh
Browse files
upload.sh
CHANGED
@@ -8,4 +8,4 @@ fi
|
|
8 |
|
9 |
archivo_entrada="$1"
|
10 |
url="$2"
|
11 |
-
curl -i -X "PUT" -d "{\"file\"
|
|
|
8 |
|
9 |
archivo_entrada="$1"
|
10 |
url="$2"
|
11 |
+
curl -i -X "PUT" -d "{\"file\":\"$(cat $archivo_entrada | base64)\"}" -H "Content-Type: application/json" -H "Accept: application/json" $url
|