fixed error message of upload & view