richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.52k stars 261 forks source link

Previously it was working well but today all req.files is null #272

Closed hannzern closed 3 years ago

hannzern commented 3 years ago

I am following the documentation by using

app.use(fileUpload({ useTempFiles: true, tempFileDir: '/tmp/', debug: true }))

In my request, I am logging the req.files but the return is null I have tried form-data using POSTMAN and also on my frontend javascript side but it is returning null. Previously (yesterday and before) it was working totally fine but today the req.files is always null. I am currently on 1.2.1

robogeek commented 2 years ago

Any knowledge about this? I'm having the same problem.

robogeek commented 2 years ago

Actually, I solved my problem -- had to do with the HTML of the input tag of the file selector in the FORM. Once I fixed that, the code worked.