Module uploads_api

Source

Enums§

CreateUploadError
struct for typed errors of method create_upload
GetUploadError
struct for typed errors of method get_upload
UploadDataError
struct for typed errors of method upload_data

Functions§

create_upload
Creates a new upload session. Minimum server version: 5.28 ##### Permissions Must have upload_file permission.
get_upload
Gets an upload session that has been previously created. ##### Permissions Must be logged in as the user who created the upload session.
upload_data
Starts or resumes a file upload. To resume an existing (incomplete) upload, data should be sent starting from the offset specified in the upload session object. The request body can be in one of two formats: - Binary file content streamed in request’s body - multipart/form-data ##### Permissions Must be logged in as the user who created the upload session.