remove unused function
improve file upload exception message
fix migration script
display translated file upload errors
refactor file input html and error handling