$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}
Deletion URL: {json:data.urls.deletion_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}
Deletion link: {data.urls.deletion_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): ?>
: