Initiate an upload of a file into the platform
files_post(name, expires_at = NULL)
name | string required. The file name. |
---|---|
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. |
A list containing the following elements:
integer, The ID of the file.
string, The file name.
string, The date and time the file was created.
integer, The file size.
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.
string, The URL that may be used to upload a file. To use the upload URL, initiate a POST request to the given URL with the file you wish to import as the "file" form field.
list, A hash containing the form fields to be included with the POST request.