This commit is contained in:
Q
2023-08-19 22:16:05 +03:00
parent 6823bf9564
commit 07aafd746d

View File

@@ -110,16 +110,16 @@ _write_folder() { # name, file
-H "Max-Downloads: $MAXDL" \
-H "Expires-Days: $MAXDAYS" \
-H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/upload
"$MFL_ROOTURL"/upload | cat
}
_write_file() { # name, file
curl -fL -w "\n" -F file="@$2" -X POST \
--progress-bar --verbose \
--progress-bar \
-H "Name: $1" \
-H "Max-Downloads: $MAXDL" \
-H "Expires-Days: $MAXDAYS" \
-H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/upload
"$MFL_ROOTURL"/upload | cat
}
_write_stdin() { # name
cat - | \
@@ -129,7 +129,7 @@ _write_stdin() { # name
-H "Max-Downloads: $MAXDL" \
-H "Expires-Days: $MAXDAYS" \
-H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/upload
"$MFL_ROOTURL"/upload | cat
}
_delete() { # name