respecting the file path configuration in the S3 upload