Fixed a bug with not specified file for upload