From 98b7c162634ba2f52dbfe6b0bf4057883fa5102c Mon Sep 17 00:00:00 2001
From: Rouji
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 @@ 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 ShareX and import this custom uploader.
On Android, you can use an app called Hupl with this uploader.