/
DC 5.5 InitiateUpload

DC 5.5 InitiateUpload

This method is used for initiating an upload

URL : /UploadService.js

Method : POST

Auth required : Yes

Required parameters

NameExampleDescription
methodInitiateUploadFixed parameter that identifies the endpoint method.
accessKeyeb774621-1c2f-467b-b006-a8efa67094a7AccesKey for API
filenametest.jpgname of the file that is uploaded

Optional parameters

NameExampleDescription
uploadernamefjs.uploadName of the uploader. Used for workflows

cUrl data example

--data "method=InitiateUpload&filename=458-speciale-thumb.jpg&uploadername=fjs.upload&accesskey=eb774621-1c2f-467b-b006-a8efa67094a7"

Success Response

Code : 200 OK

Content example

{
    "success": true,
    "total": 0,
    "error": "",
    "items": [{
        "uploadId": 4,
        "itemId": 9512,
        "AssetId": 0
    }],
    "warnings": []
}

Error Response

Code : 200 OK

Content  example

{
	"success": false,
	"total": 0,
	"error": "Access denied\r\n",
	"items": null,
	"warnings": [{
		"Severity": 10,
		"Code": 420,
		"Description": "Access denied"
	}]
}

Related content

DC 5.5 UploadFileChunks
DC 5.5 UploadFileChunks
Read with this
DC 5.6 InitiateUpload
DC 5.6 InitiateUpload
More like this
DC 5.5 API Documentation
DC 5.5 API Documentation
Read with this
DC 5.7 InitiateUpload
DC 5.7 InitiateUpload
More like this
DC 5.5 Upload/Replace
DC 5.5 Upload/Replace
Read with this
DC 5.10 InitiateUpload
DC 5.10 InitiateUpload
More like this