informatics-isi-edu / ermrestjs

ERMrest client library in JavaScript
Apache License 2.0
4 stars 3 forks source link

Custom filename for content-disposition #1010

Closed jrchudy closed 7 months ago

jrchudy commented 7 months ago

This PR adds support for an new annotation property on the asset annotation, stored_filename_pattern. This property will allow for data modelers to customize the content-disposition value that is stored in hatrac for the file and the value stored in the filename_column (if defined on the annotation). This pattern uses the same template variables as url_pattern with a new one added called filename_stem, the name of the file without the extension.

More details in the comment on issue 1949 in chaise.