Spaces:
Running
Running
Update upload.sh
Browse files
upload.sh
CHANGED
@@ -7,4 +7,5 @@ if [ -z "$1" ] || [ -z "$2" ]; then
|
|
7 |
fi
|
8 |
|
9 |
archivo_entrada="$1"
|
10 |
-
url="$2"
|
|
|
|
7 |
fi
|
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
|