Frontend

Headers

To get upload working, we need a few information:

csrf-token

{ "csrf-token": pluginApi.env.getCSRFToken() }

organization-id

{ "organization-id": pluginApi.pluginContext.organizationId }

file-extension (optional)

If none is passed, we will read from the original file name. If none, then it'll be empty.

For tus, the original file name is obtained from metadata.filename

For form data, the original file name is obtained from the filename field.

custom-media-id (optional)

The resulting id of the media. If none is passed, we will generate one.

Last updated