Support S3 file (non-image) uploads.
Merge branch 'upload-file' into add-path-and-host-settings
Update s3 file upload to use path and host settings.