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