From 641e45309da413d3f2d5a94f3e5b46d881a6a41a Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 23 Jan 2025 16:30:07 +0100 Subject: Add info about X-ResourceMeta-Extension in index.html --- templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/index.html b/templates/index.html index 0186d89..0bf6019 100644 --- a/templates/index.html +++ b/templates/index.html @@ -57,6 +57,8 @@ Server for uploading files. Use the form here or send a POST request to /upload with the content of the file in the body. +The request can contain a X-ResourceMeta-Extension header with the desired extension of the file including the dot (i.e. .gif or .flac). +This will improve compatibility when fetching the file. If a token has been set on the server, pass the token in the request via a X-Token header. The response will contain a X-Resource-ID header containing the ID of the saved file. -- cgit v1.2.3