Fixed a bug with the file handling(Upload).