Better error messages for files upload