Projects tigase _server tigase-http-api Issues #72
Change Content-Disposition from attachment to inline (#72)
Closed
wojciech.kapcia@tigase.net opened 6 years ago

Currently images are served with Content-Disposition set to attachment which causes browsers to open download dialog instead of displaying the image. Switching it to inline 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.

Andrzej Wójcik (Tigase) commented 5 years ago

I've changed content disposition from Content-Disposition: attachment; filename="file.txt" to Content-Disposition: inline; filename="file.txt" which allows for previews and if you try to save such file it gets name as advertised in filename part of the content disposition header.

issue 1 of 1
Type
New Feature
Priority
Blocker
Assignee
RedmineID
8458
Version
tigase-server-8.1.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#72
Please wait...
Page is in error, reload to recover