Uploading file to configurable S3 bucket