fixed uploadng files to S3