uploads.c: made the syslog less verbose
[citadel.git] / webcit-ng / api.txt
index 35de78ef313e60d70aebe3a495019c78762438fb..f148f53c5e03fa790ff0b5f87cf0f08f2f30fd14 100644 (file)
@@ -35,5 +35,14 @@ GET             /ctdl/u/<username>/userpic         Returns an image containing t
 GET             /ctdl/s/                           Static content (html, css, js, images...)
 GET             /.well-known/                      Static content (RFC5785 compliant paths)
 POST            /ctdl/p                            Handler for uploading attachments and other file items
+                                                   The JSON returned wil contain one or more uploads in an array like this:
+                                                   [
+                                                     {
+                                                       "uploadfilename" : "Track 01.wav",
+                                                       "contenttype" : "audio/wav",
+                                                       "ref" : "cdarzowkk",
+                                                       "contentlength" : 56222252
+                                                     }
+                                                   ]
 GET             /ctdl/p/<id>                       Fetch a specific item that was uploaded
 DELETE          /ctdl/p/<id>                       Delete a specific item that was uploaded