Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-19) was last changed on 02-Dec-2008 00:18 by Keith Mashinter  

This page was created on 06-May-2005 05:52 by 151.199.35.219

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 127 added 24 lines
----
The proper solution to IE cache issues is to declare the attachment as "Pragma: private" and "Cache-Control: private, must-revalidate" in the HTTP Response. This allows MS-IE to save the content as a temporary file in its local cache, but in not general public cache servers, before handing it off the plugin, e.g. Adobe Acrobat, to handle it. Here is a code snippet as an example from the AttachmentServlet.java.
public void doGet( ... ) {
...
// If a size is provided by the provider, report it.
if( att.getSize() >= 0 )
{
// log.info("size:"+att.getSize());
res.setContentLength( (int)att.getSize() );
}
// KM: Allow this to be put in a private, client-only cache to solve MS-IE issues.
res.setHeader("Pragma", "private");
res.setHeader("Cache-Control", "private, must-revalidate");
--[Keith Mashinter|mailto:kmashint@yahoo.com], 02-Dec-2008 00:18
Version Date Modified Size Author Changes ... Change note
19 02-Dec-2008 00:18 6.526 kB Keith Mashinter to previous Proper solution for IE cache issues
18 16-Oct-2005 13:34 5.59 kB Administrator to previous | to last
17 03-Jul-2005 19:52 5.568 kB Administrator to previous | to last
16 08-May-2005 03:48 5.54 kB 68.160.4.141 to previous | to last
15 08-May-2005 03:32 5.391 kB 68.160.4.141 to previous | to last
14 07-May-2005 05:23 5.088 kB 24.154.254.226 to previous | to last
13 07-May-2005 03:28 0.428 kB 221.216.172.118 to previous | to last
12 07-May-2005 00:24 5.088 kB Administrator to previous | to last
11 06-May-2005 22:05 4.967 kB 129.33.1.37 to previous | to last
10 06-May-2005 11:26 4.723 kB Administrator to previous | to last
9 06-May-2005 11:26 4.701 kB Administrator to previous | to last
8 06-May-2005 08:20 3.031 kB 151.199.35.219 to previous | to last
7 06-May-2005 08:19 3.025 kB 151.199.35.219 to previous | to last
6 06-May-2005 08:18 3.011 kB 151.199.35.219 to previous | to last
5 06-May-2005 08:02 2.751 kB 151.199.35.219 to previous | to last
4 06-May-2005 07:57 2.549 kB 151.199.35.219 to previous | to last
3 06-May-2005 07:33 2.093 kB 151.199.35.219 to previous | to last
2 06-May-2005 07:32 2.075 kB 151.199.35.219 to previous | to last
1 06-May-2005 05:52 1.965 kB 151.199.35.219 to last
« This page (revision-19) was last changed on 02-Dec-2008 00:18 by Keith Mashinter