From 2f2b152860de21c12adebafc25a3b5d75cdf3853 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 2 Jun 2025 01:59:00 +0400 Subject: feat: info for file uploader software --- public/uploaders.php | 178 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 public/uploaders.php (limited to 'public/uploaders.php') diff --git a/public/uploaders.php b/public/uploaders.php new file mode 100644 index 0000000..57cf8b4 --- /dev/null +++ b/public/uploaders.php @@ -0,0 +1,178 @@ + $v) { + $type = ucfirst(explode('/', $v)[0]); + if (!array_key_exists($type, $file_types)) { + $file_types[$type] = []; + } + + if (!in_array($k, $file_types[$type])) { + array_push($file_types[$type], $k); + } +} +?> + + + + Uploaders - <?= INSTANCE_NAME ?> + + + + + + +
+ + +
+
+

File Uploaders

+

Configure your software to work with

+
+ + +
+ +
+
+

ShareX

+

(Destinations → Custom uploader settings → New)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name:
Request URL:/upload.php
Destination type:Image uploader
Method:POST
Body:Form data (multipart/form-data)
Headers:Accept: application/json
File form name:file
URL:{json:data.urls.download_url}
+

Then, select it via Destinations → Image uploader → Custom image + uploader

+
+ + +
+
+

Chatterino

+

(Settings → External tools → Image Uploader)

+
+ + + + + + + + + + + + + + + + + +
Request URL:/upload.php
Form field:file
Extra headers:Accept: application/json
Image link:{data.urls.download_url}
+
+
+ + +
+

API

+
+

Endpoint

+
+

POST /upload.php

+
+ +
+

Request Format

+
+ + + + + + + + + + + + + + + + + + + + + +
Method:POST
Content-Type:multipart/form-data
Headers:Accept: application/json
File field:file
Max file size:
+
+ +
+

Supported file extensions

+
+ + $exts): ?> + + + + + +
:
+
+
+
+
+ + + + + \ No newline at end of file -- cgit v1.2.3