Managing S3 content type settings
When uploading content to AWS S3, the object can be assigned a MIME type that describes the format of the contents. HSTS automatically applies content types to objects uploaded by using FASP® transfers, based on a list located in /opt/aspera/etc/trapd/mime-types.props.
Disabling content types
If you do not want content types to be automatically applied to your objects, you can disable it:
- Open the Trapd configuration file: /opt/aspera/etc/trapd/trap.properties.
- Locate the following line:
And change the value fromaspera.mime-types.enabled=truetruetofalse. - Save trap.properties then restart Trapd to activate your
changes:
# systemctl asperatrapd restart
Using a different content type list
If you used the previous version of the Aspera® content type list or want to create a custom list, you can configure Trapd to use the alternative file:
- Open the Trapd configuration file: /opt/aspera/etc/trapd/trap.properties.
- Locate the following line:
To use the previous Aspera content type list, uncomment the line and change the value from mimes-types.props to mime-types_v1.prop. To use your own list, save the file in /opt/aspera/etc/trapd/ as mimes-types.props and uncomment the line.#aspera.mime-types.file=mimes-types.props - Save trap.properties then restart Trapd to activate your
changes:
# systemctl asperatrapd restart