Skip to content

uploadFile

uploadFile(file, uploadUrl): Promise<{ storageId: string; }>

Defined in: packages/file-storage-convex/src/adapter/uploadFile.ts:9

Uploads the file from the client to the server. Receives the File and the endpoint url to post the file to Must return an object with a { storageId: string }

File

File

string

string upload url for the file to be posted

Promise<{ storageId: string; }>

the id of the storage in the storage adapter