AdminUploadsResource
admin/uploads.AdminUploadsResource
Properties
headers
objectRequiredheaders.Content-Type
stringRequiredDefault: `"multipart/form-data"`
Methods
_createPayload
Private
_createPayload(file
): FormData
Parameters
Returns
FormData
create
create(file
): ResponsePromise
<AdminUploadsRes
>
Parameters
File or array of files to upload.
Returns
ResponsePromise
<AdminUploadsRes
>
Uploaded file or files.
Description
Uploads at least one file to the specific fileservice that is installed in Medusa.
createProtected
createProtected(file
): ResponsePromise
<AdminUploadsRes
>
Parameters
File or array of files to upload.
Returns
ResponsePromise
<AdminUploadsRes
>
Uploaded file or files.
Description
Uploads at least one file with ACL or a non-public bucket to the specific fileservice that is installed in Medusa.
delete
delete(payload
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
getPresignedDownloadUrl
getPresignedDownloadUrl(payload
, customHeaders?
): ResponsePromise
<AdminUploadsDownloadUrlRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminUploadsDownloadUrlRes
>
Was this section helpful?