getMediaUploadUrl( )


Retrieves a URL generated by the Media Manager to use when creating a submission that includes a field for uploading files.

Notes:

  • The Submissions API is only available in Wix Studio and Editor X.
  • You need at least a Standard Premium plan for your site to upload files.

To learn how external clients can use the generated upload URL to upload a file to the Media Manager, see Upload API.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Submissions
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
formIdstringRequired

Form ID.


filenamestringRequired

Name of file to upload.


mimeTypestringRequired

Mime type of file to upload.

For example, 'image/png'

Returns
Return Type:Promise<GetMediaUploadURLResponse>
Was this helpful?
Yes
No