I don't know where it is at in the 3.0 version but in 3.1 it is in the info.magnolia.module.dms.DMSDownloadServlet at line 141. Pretty much hard-coded there, so I'd imagine it was the same in 3.0. It would be nice functionality to have, I ran into the same problem when I've been testing out 3.1 and sometimes I want it to be an attachment disposition, sometimes not. If you know you never want content disposition, you could pull down the 3.0 code that matches the version you're using, remove that line, recompile and stuff it into the appropriate jar file (or just do a complete build and let maven take care of it for you).
Maybe a new url for dms beside the default dms and dms-static that was dms-clean, dmsc or something to indicate it isn't doing anything trying to get the file to be treated as an attachment. I know for image files I rarely would want them treated as attachments if ever, but I don't think there is a simple organization that one can do that would cover all bases without adding on another dms base link like dms and dms-static. It doesn't seem to make sense just to put it at the document level because different locations on a site may require different treatment of the same document. Just my thoughts on the matter, Tom > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 20, 2007 3:20 PM > To: [email protected] > Subject: Re: [magnolia-user] How to Configure Content > Disposition in Magnolia 3.0 > > Yes, using the Live HTTP Headers plugin for Firefox we can > see Content-Disposition being set to 'attachment'. > > Thanks, > > Justin Pizzala > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 20, 2007 2:00 PM > To: [email protected] > Subject: Re: [magnolia-user] How to Configure Content > Disposition in Magnolia 3.0 > > Can you use liveheaders plugin for Firefox to see if the > Content-Disposition is being set on response headers? > > Thanks > > Amir > > > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 20, 2007 4:35 PM > > To: [email protected] > > Subject: [magnolia-user] How to Configure Content Disposition in > > Magnolia 3.0 > > > > > > Hello all, > > > > We developed a Magnolia 3.0 based Website that uses the DMS > module to > > serve documents such as PDF and DOC files. When accessing a > PDF file > > from the Website using a browser (reproduced on both IE6 > and Firefox) > > the file download window pops up. However, we would like > the browser > > to automatically open the file inline instead of first > prompting the > > user to "save" or "open" the file via a download dialog. > > > > So my question is: is it possible to configure how the > files will be > > opened in a browser (inline vs. attachment) using Magnolia Admin > > Central? > > > > I believe this is due to the Content-Disposition header (since the > > mime-type is specified correctly), but I was not able to find more > > information to confirm this is the case. > > > > Please let me know if you have a solution or experienced a similar > > problem in the past. Your help is much appreciated. > > > > Thanks! > > > > Nikola > > > > ---------------------------------------------------------------- > > for list details see > > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > > ---------------------------------------------------------------- > > > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > ---------------------------------------------------------------- > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
