-
I've changed content disposition from
Content-Disposition: attachment; filename="file.txt"
toContent-Disposition: inline; filename="file.txt"
which allows for previews and if you try to save such file it gets name as advertised infilename
part of the content disposition header.
Type |
New Feature
|
Priority |
Blocker
|
Assignee | |
RedmineID |
8458
|
Version |
tigase-server-8.1.0
|
Issue Votes (0)
Watchers (0)
Currently images are served with
Content-Disposition
set toattachment
which causes browsers to open download dialog instead of displaying the image. Switching it toinline
would fix that problem.IMVHO if the client offers image preview and wants to allow user downloading the image then instead of using
Content-Disposition: attachment
the client should offer option to download/save image.