fixing file resource for S3 upload