Workaround in Files controller for file-upload errors

one-line change to app/files_controller.rb