Fixed an issue with uploading files of diff types