#Upload file for customer

5 messages · Page 1 of 1 (latest)

flat marten
#

How can i create a new endpoint upload? Somebody help me

misty prawn
#

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?

flat marten
flat marten
#

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

alpine plaza
#
  1. Add the multer to the src/api/middleware.ts
  2. Add the route in src/api/store/upload/route.ts