Skip to main content

Save File Callback

Filez Document Platform calls the uploadUrl in the initialization parameters to upload the saved file.

MethodDescription
POSTUploads the document specified by docId. docId is the document ID in the third-party service. Returns the latest modification time of the document in JSON format.

The platform server uploads the file using formData. The content type is multipart/form-data, not form_url_encoded or x-www-form-urlencoded.

ParameterRequiredLocationDescriptionTypeDefault
Content-TypeYesHeaderMust be multipart/form-datastring
fileYesBody (form data)The file itself, with two attributes: filename (fixed as content, please ignore it, this API will not be used to modify the file name) and contentType (file mimeType, e.g. application/octet-stream)multipartfile

On successful upload, the latest file modification time needs to be returned.

For example:

{
"modified_at": "2020-03-25T02:57:38.000Z" // Required. This time should be the latest saved time of this file in the business system, and this save must be caused by this API call.
}