I have a controller in sails js which takes care of uploading images to s3. Everything works fine and image is uploaded to s3 assuming that only one file was sent for the param "image" (which I can access through req.file('image')). I want to know, how to validate, that only one file ( input type="file" ) is sent and uploaded and not multiple ( input type="file" multiple ) files.
Fact: Multiple files are getting uploaded successfully, but the I can not see multiple files in req.file('image')._files