#Upload file for customer
5 messages · Page 1 of 1 (latest)
hi @flat marten what do you mean exactly? I think you need firstly some place where you can store a files then you can share paths to these files to customers, e.g. in their entities. What scenario you have to cover?
Sorry for not being clear enough. As we know, Medusa has an admin/uploads API endpoint. Now, I want to create a new API endpoint called customer/uploads. I'm having issues with reading files using Multer. It doesn't seem to work with the Medusa Route
I created this code in src/api/index.ts. It still works, but I can't read files when using multer with the API route in the Medusa documentation
- Add the multer to the src/api/middleware.ts
- Add the route in src/api/store/upload/route.ts