RandomSec/main/webapp/modules/core/scripts/dialogs
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
..
clustering-dialog.html Hook the new command to the UI to expose all clusterers 2018-12-11 11:59:37 +00:00
clustering-dialog.js Update jquery.i18n to 1.07 and fix non-English plural support (#2717) 2020-06-14 10:23:23 +02:00
column-reordering-dialog.html Internationalization of the dialog part 2013-07-04 11:51:04 +02:00
column-reordering-dialog.js removed closing of dialog box on an outside click and moved escape key logic to dialog.js 2020-02-28 18:40:15 +05:30
custom-tabular-exporter-dialog.html Custom Tabular Exporter: add option to quote all strings #1869 (#2427) 2020-03-17 18:01:37 +00:00
custom-tabular-exporter-dialog.js Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
export-project-dialog.html exclude test-out 2018-02-25 12:00:40 -05:00
expression-column-dialog.html Fix on screen text in Transform All columns dialog 2018-11-22 11:39:29 +00:00
expression-column-dialog.js Fix on screen text in Transform All columns dialog 2018-11-22 11:39:29 +00:00
expression-preview-dialog.html #1970 Disable spell check for expressions. 2019-10-12 16:51:04 +02:00
expression-preview-dialog.js CSRF protection for ImportingController 2019-10-14 16:24:26 +01:00
extend-data-preview-dialog.js CSRF protection for project and recon commands 2019-10-15 12:07:12 +01:00
http-headers-dialog.html Remove div no longer needed 2018-01-16 17:43:55 +00:00
http-headers-dialog.js Removed unused code 2018-01-16 17:43:55 +00:00
scatterplot-dialog.html Internationalization of the dialog part 2013-07-04 11:51:04 +02:00
scatterplot-dialog.js Fix i18n calls after migration 2018-11-28 23:22:38 +09:00
sql-exporter-dialog.html check empty cells 2018-04-22 00:39:11 -05:00
sql-exporter-dialog.js Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
templating-exporter-dialog.html Internationalization of the dialog part 2013-07-04 11:51:04 +02:00
templating-exporter-dialog.js removed closing of dialog box on an outside click and moved escape key logic to dialog.js 2020-02-28 18:40:15 +05:30