Toggle menu

Store File: POST /filestore/http/file[?uploaderid=OptionalUsername]

Stores the files supplied in the multipart HTTP call, returning details about them. Details returned include an id identifier, uniquely identifying each file added to the file store.

Request Parameters

NameTypeComments
file(s)File Field(s)Files, supplied as file fields in the multipart POST request.
uploaderIdQuery Param(Optional) Free text identifier of the uploader (e.g. site username)

Example

Store File POST
 

Response - Success

{
    "pusheen": [{
        "success": true,
        "fileDetails": {
            "id": "98ceef29-33d5-4eee-8a5d-25ed07111936",
            "filename": "pusheen.png",
            "type": "image/png",
            "hash": "ba44f7f8f88543fbf91f9b9eb0217cfe",
            "size": 37029,
            "references": [],
            "created": "2016-02-22T11:37Z",
            "createdBy": "Pusheen",
            "lastUpdated": "2016-02-22T11:37Z",
            "lastUpdatedBy": "Pusheen"
        }
    }]
}

Last modified on June 27, 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon