Skip to content

Commit

Permalink
add hint about piping to curl with a file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouji committed Jun 7, 2020
1 parent 0897b3e commit 98b7c16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.php
Expand Up @@ -293,6 +293,9 @@ function print_index()
You can upload files to this site via a simple HTTP POST, e.g. using curl:
curl -F "file=@/path/to/your/file.jpg" $url
Or if you want to pipe to curl *and* have a file extension, add a "filename":
echo "hello" | curl -F "file=@-;filename=.txt" $url
On Windows, you can use <a href="https://getsharex.com/">ShareX</a> and import <a href="$sharex_url">this</a> custom uploader.
On Android, you can use an app called <a href="https://github.com/Rouji/Hupl">Hupl</a> with <a href="$hupl_url">this</a> uploader.
Expand Down

0 comments on commit 98b7c16

Please sign in to comment.