From 98b7c162634ba2f52dbfe6b0bf4057883fa5102c Mon Sep 17 00:00:00 2001
From: Rouji <a@r0.at>
Date: Sun, 7 Jun 2020 22:35:39 +0200
Subject: [PATCH] add hint about piping to curl with a file extension

---
 index.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.php b/index.php
index 02a9d1b..6295b31 100755
--- a/index.php
+++ b/index.php
@@ -293,6 +293,9 @@ echo <<<EOT
 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.