Closed fatlinesofcode closed 8 years ago
I have not looked at your code yet, but could you have a look at our reference Express application which uses s3-uploader
to upload user images to AWS S3.
https://github.com/Turistforeningen/Jotunheimr/blob/master/routes/api_v1.js
It can work with express v4 but you will need a middleware for handling multipart/form-data
. (like multer). It will populate req.files
/req.file
. Can you add this and try again?
This reminds me, we still need to add some examples #51.
thanks, I'll try again with multer.
If something pops up, feel free to open this issue.
I'm trying to use this to upload a file via a form post. It worked fine using express 3 but with express 4 the request.files object is empty. There have been suggestions online to use multer or busboy but I cant figure out how to implement them with s3-uploader. Here is a copy of upload function
req.files object is always empty. Any suggestions on how I get that object to contain the file info?