Add more instructions for cli

This commit is contained in:
Beu 2020-02-24 23:06:38 +01:00
parent e7d3921bc0
commit 907d92639f
2 changed files with 8 additions and 2 deletions

View File

@ -30,7 +30,7 @@ Drag and Drop your file or <input class="button" type="button" value="Select Fil
<div class=infobox>
This tool is usable with <b>curl</b> or <b>wget</b>.<br><br>
To upload : <br>
To upload file: <br>
<li> curl --upload-file ./my_file <?php print($uploadurl);?><br>
<li> wget -q --body-file='./my_file' --method=PUT -O - <?php print($uploadurl);?><br><br>

View File

@ -108,7 +108,13 @@
{
if (stristr($_SERVER["HTTP_USER_AGENT"], 'curl') or stristr($_SERVER["HTTP_USER_AGENT"], 'Wget'))
{
print("To upload file, use # curl --upload-file my_file " . $uploadurl);
print("To upload file:\n");
print("* curl --upload-file my_file " . $uploadurl . "\n");
print("* wget -q --body-file my_file --method=PUT -O - " . $uploadurl . "\n");
print("\n");
print("To download file :\n");
print("* curl -OJ " . $downloadurl . "99999\n");
print("* wget --content-disposition " . $downloadurl . "99999\n");
}
else
{