Initiate a multipart upload

files_post_multipart(name, num_parts, expires_at = NULL)

Arguments

name

string required. The file name.

num_parts

integer required. The number of parts in which the file will be uploaded. This parameter determines the number of presigned URLs that are returned.

expires_at

string optional. The date and time the file will expire. If not specified, the file will expire in 30 days. To keep a file indefinitely, specify null.

Value

A list containing the following elements:

id

integer, The ID of the file.

name

string, The file name.

createdAt

string, The date and time the file was created.

fileSize

integer, The file size.

expiresAt

string, The date and time the file will expire. If not specified, the file will expire in 30 days. To keep a file indefinitely, specify null.

uploadUrls

array, An array of URLs that may be used to upload file parts. Use separate PUT requests to complete the part uploads. Links expire after 12 hours.