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:

  1. Open the Trapd configuration file: /opt/aspera/etc/trapd/trap.properties.
  2. Locate the following line:
    aspera.mime-types.enabled=true
    And change the value from true to false.
  3. 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:

  1. Open the Trapd configuration file: /opt/aspera/etc/trapd/trap.properties.
  2. Locate the following line:
    #aspera.mime-types.file=mimes-types.props
    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.
  3. Save trap.properties then restart Trapd to activate your changes:
    # systemctl asperatrapd restart