Generates an upload URL to allow external clients to upload a file to the Media Manager.
To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see Upload API (SDK | REST).
Notes:
You can only call this method when authenticated as a Wix app or Wix user identity.
function generateFileUploadUrl(
mimeType: string,
options: GenerateFileUploadUrlOptions,
): Promise<GenerateFileUploadUrlResponse>;
File mime type.
Options to use when generating a file's upload URL.
import { files } from "@wix/media";
async function generateFileUploadUrl(mimeType, options) {
const response = await files.generateFileUploadUrl(mimeType, options);
}
There are 5 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.