fixed bug in routes/handleFiles.js
added primitive error handling to uploader.js