Fix incorrect file naming while uploading