PDA

View Full Version : [FIXED] Image-Attachments in Mozilla 1.3b


Stadler
Fri 21st Feb '03, 2:00pm
The old thread disappeared, so I post it again

attachment.php submitsheader("Content-disposition: atachment; filename=$attachmentinfo[filename]");by default, so Mozilla wants to download the attachment, even if it is an image and this is really annoying.

To fix this, freddie suggested edit attachment.php and changeheader("Content-disposition:$attachment filename=$attachmentinfo[filename]");toheader("Content-disposition: inline; filename=$attachmentinfo[filename]");I am not sure yet how this change will affect older browsers though we no longer support the v4 and older browsers. There have been a lot of issues with content-disposition over the years with some of the browsers so it is a tricky thing to work with. It will probably be ok but I need someone with older browsers to check the following things:

- right click an attachment and verify that when you do "save as" or "save image" that the download prompt gives you the proper name for the attachment AND not 'attachment.php' as the name.
- verify that the attachment opens when you left click on the thumbnail and you are NOT prompted to download the attachment. If the attachment is not an image than it may or may not open in your browsers depending on the settings for that particular file type.

Need:
IE 5, IE 5.5
Netscape 6
Opera versions before 7
Other misc browsers

Here are some attachments to test on:btw: the last one is the cached thread I've managed to save from my IE-Cache.