Add more instructions for cli
This commit is contained in:
		| @@ -30,7 +30,7 @@ Drag and Drop your file or <input class="button" type="button" value="Select Fil | |||||||
| <div class=infobox> | <div class=infobox> | ||||||
| This tool is usable with <b>curl</b> or <b>wget</b>.<br><br> | 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> curl --upload-file ./my_file  <?php print($uploadurl);?><br> | ||||||
| <li> wget -q --body-file='./my_file' --method=PUT -O - <?php print($uploadurl);?><br><br> | <li> wget -q --body-file='./my_file' --method=PUT -O - <?php print($uploadurl);?><br><br> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -108,7 +108,13 @@ | |||||||
|                 { |                 { | ||||||
|                         if (stristr($_SERVER["HTTP_USER_AGENT"], 'curl') or stristr($_SERVER["HTTP_USER_AGENT"], 'Wget')) |                         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 |                         else | ||||||
|                         { |                         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user