anacronw / multer-s3

multer storage engine for amazon s3
MIT License
660 stars 190 forks source link

How to get back the public Bucket file URL after upload? (Single file) #129

Closed somikdatta closed 4 years ago

somikdatta commented 4 years ago

I can't figure out how to extract the public URL of the uploaded file for sending back to user.

sauldeleon commented 4 years ago

Hi @somikdatta How do you retrieve the url? thanks!

somikdatta commented 4 years ago

Hi @somikdatta How do you retrieve the url? thanks!

Hey @sauldeleon! Multer appends the file location in req.file.location which you can access on the next middleware.