RandomSec/main/webapp/modules/core/scripts/project
Tom Morris 5f368bc56d
Use ContentDisposition instead of ContentType to control download (#2722)
* Use ContentDisposition instead of ContentType to control download

Fixes #1197. Previously we were using a funky ContentType to attempt
to force a file download rather than display in browser, but this
conflicted with attempts to save UTF-8 which was outside the Basic
Multilingual Plane (BMP).

By switching to ContentDisposition: attachment, which has been
the preferred method for a number of years, we can avoid this conflict.

As part of this, switch to using the "preview" param consistently
to control preview vs download rather than the content type.

* Switch content type to text/plain

Now that we don't need to use ContentType to control download
behavior, we can use something more reasonable.
2020-06-16 15:46:07 +02:00
..
browsing-engine.js Migrate js to new localization syntax 2018-11-21 17:30:00 +00:00
edit-metadata-dialog.html let the browser auto fit the table cell when resizing/zooming 2017-11-15 16:17:57 -05:00
exporters.js Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
extension-bar.js fixing a bunch of jslint issues 2011-10-07 23:44:11 +00:00
history-apply-dialog.html Internationalization of the project part 2013-07-05 16:32:12 +02:00
history-entry.html Reduce filtered out history items' heights rather than hiding them entirely 2010-10-18 20:05:58 +00:00
history-extract-dialog.html Internationalization of the project part 2013-07-05 16:32:12 +02:00
history-panel.html Merge remote-tracking branch 'blakko/internationalization' - close #755 2013-07-25 10:53:25 -04:00
history-panel.js Migrate js to new localization syntax 2018-11-21 17:30:00 +00:00
process-panel.js Tie up CSRF tokens in the frontend 2019-10-15 12:07:14 +01:00
progress-panel.html Internationalization of the project part 2013-07-05 16:32:12 +02:00
scripting.js Cleaned up code formatting in .js, .html, .vt, .css, .less files. 2011-08-04 20:37:14 +00:00
summary-bar.js Migrate js to new localization syntax 2018-11-21 17:30:00 +00:00