Improve Error Message handling for file uploads
Currently when I have a problem with uploading files I only get an 500 error (internal server error). It would be nice to have a more dedicated error message that one can display in the frontend (expecially for this non supported file types).