summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-06 18:59:03 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-06 19:03:31 -0400
commit8e89d43bdf35b2a1f69f3f7e3d87c57fb1e3f58a (patch)
treee7152a060dce2ef8a1dbf41cc6202339c5337a97 /README.md
parent0f0d4477a4eab8ec0b99c134154ce0fedb4d6400 (diff)
Implement file uploading.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index c18c66f..2cf8a74 100644
--- a/README.md
+++ b/README.md
@@ -108,9 +108,9 @@ GET /api/posts/[id]
ImageResult
```
-To upload an image to the database, the blob of data may be POSTED to the
-following endpoint, where `filename` is the desired filename of the image (a
-string):
+To upload an image to the database, post a multipart/form-data encoded message
+to the following endpoint with the following fields: `tags`, a comma-separated
+list of tags for the files, and `image`, the file to be uploaded.
```
POST /api/posts/[filename]