AdminUploadsResource
This class is used to send requests to Admin Upload API Routes. All its method
are available in the JS Client under the medusa.admin.uploads
property.
All methods in this class require user authentication.
The methods in this class are used to upload any type of resources. For example, they can be used to upload CSV files that are used to import products into the store.
Related Guide: How to upload CSV file when importing a product.
Methods
create
Upload a file or multiple files to a public bucket or storage. The file upload is handled by the file service installed on the Medusa backend.
Example
Parameters
file
AdminCreateUploadPayloadRequiredThe file(s) to upload.