createFileUploadUrl( )


Creates an upload URL for a data source file.

Before submitting a job to import data from a file to a collection, call this method to generate an upload URL. Use the uploadUrl in the response to upload your source file. For example:

curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"

Note: The URL is valid for 15 minutes.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Data Mover Manage Jobs
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsCreateFileUploadUrlOptions
Returns
Return Type:Promise<CreateFileUploadUrlResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?