From: David H. <pro...@ma...> - 2008-08-18 17:21:29
|
My bad, I was using the configuration name in my proxyAsAttachment property but the name I was using was incomplete. Thanks once again for your help. David On 18-Aug-08, at 9:14 AM, Mike Schrag wrote: >> Setting that property makes the attachment download instead of >> displaying inline, but the filename is the webpath, not the >> original name. Adding the line below to the link component makes >> it use the original name. I followed the source pretty carefully >> yesterday, and that was the easiest place I found to make the app >> return the original name. Thanks! >> >> response.appendContentString("?attachment=true"); > I'm confused here ... If you set > er.attachment.proxyAsAttachment=true it should do the exact same > thing as attachment=true on the query string: > > boolean proxyAsAttachment = (queryString != null && > queryString.contains("attachment=true")); > ... > if (!proxyAsAttachment) { > proxyAsAttachment = > attachmentProcessor.proxyAsAttachment(attachment); > } > ... > proxyAsAttachmentStr = ERXProperties.stringForKey > ("er.attachment.proxyAsAttachment"); > > ms > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc |