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 }
Parameters
Section titled “Parameters”File
File
uploadUrl
Section titled “uploadUrl”string
string upload url for the file to be posted
Returns
Section titled “Returns”Promise<{ storageId: string; }>
the id of the storage in the storage adapter