fixed bug in uploading non supported file formats