Attachment Search Parameters

POST /attachments

Creates an attachment

Request

The content-type should either be the mime type of the file you are uploading, or application/octet-stream which will have the server attempt to infer the mime type. If it fails to infer the mime type, no mime type or extension will be assigned and the it will be an extension-less file. The body should be purely the file data. I hate form bodies and think they should only be used for multiple fields, they are overkill for file uploads

Response


GET /attachments/:attachmentID

Download a given attachment. Downloads automatically support streaming.

Response

The file will be downloaded, and the content-type will be the representative of file being downloaded.