Fix extension naming for S3 for file upload