RandomSec/main/webapp/modules/core
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
..
externals Update jquery.i18n to 1.07 and fix non-English plural support (#2717) 2020-06-14 10:23:23 +02:00
images (I #1038) Add a Show/Hide left panel button (#2616) 2020-05-30 12:01:26 +01:00
langs add archive column (#2573) 2020-06-15 19:56:00 +02:00
MOD-INF Update jquery.i18n to 1.07 and fix non-English plural support (#2717) 2020-06-14 10:23:23 +02:00
scripts Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
styles Refactoring the data table into a single container (#2719) 2020-06-16 11:40:13 +02:00
about.html Delete old logos and rename new logos 2018-02-08 13:04:35 +08:00
error.vt use absolute path (#2679) 2020-06-06 11:25:52 +01:00
index.vt Delete old logos and rename new logos 2018-02-08 13:04:35 +08:00
macros.vm Converted project.html to project.vt and added a client side resource manager, where extensions can register scripts and styles to be included in .vt files 2010-06-15 00:35:23 +00:00
preferences.vt Delete old logos and rename new logos 2018-02-08 13:04:35 +08:00
project.vt Delete old logos and rename new logos 2018-02-08 13:04:35 +08:00