Reputation: 14750
I have NodeJS behind nginx. I need to make possible to upload small files (5-10 mb around) for parsing and handling them. I need to know about possible attack against this feature so basically I'm interested in the following:
Upvotes: 0
Views: 389
Reputation: 874
Use user authorization for file uploading.
Or you can see source code of jQuery file uploader for nodejs. It has validation for file types and file size https://github.com/blueimp/jQuery-File-Upload/tree/master/server/node
Use forever (https://github.com/nodejitsu/forever) or other libs to stand up the server
Upvotes: 1