-----Original Message-----
From: [EMAIL PROTECTED] [mailto:wicket-user-
[EMAIL PROTECTED] On Behalf Of Scott Sauyet
Sent: Thursday, September 15, 2005 9:21 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Resource reference scoped to the current
session?
Even with this, it would be nice to offer the download with a URL that
suggests a name for the download.
As it stands with a MS Word document, even if you get the MIME type
right, FF would offer to download the file named "app", and IE and Opera
offer to download the file "app.doc". I would definitely like to be
able to suggest they download "MyFunkyFilename.doc"
It's possible that this could be done with some URL rewriting trickery,
but I'm with Phil in wondering if there is something already built-in
that would help.
-- Scott
Johan Compagner wrote:
Do you know the name of the resource?
(why don't you know the content type??)
because now you can set the content disposition as a header
See WebResource:
protected void setHeaders(WebResponse response)
On 9/15/05, *Phil Kulak* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
wrote:
Well, that is what I've been doing. The problem is that the link
looks
like this:
app?path=3&interface=IResourceListener
or something similar. This means that when the content type is
known,
the browser can handle it, but otherwise the browser just presents
this file to the user called "app". If there was a way to have it be
"myFile.pdf", then there would be no confusion. Does that make
sense?
On 9/15/05, Johan Compagner < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
> i would say use a ResourceLink for that.
> Then the resource is only useable for that session.
>
>
> On 9/15/05, Phil Kulak < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
> >
> > I need to allow users to download files, but they (the files)
are
> > secure and must only be viewed by the user I give the link to.
I've
> > been using resources, but that has the consequence of the files
coming
> > out with the name "app" and no extension. Does anyone know of a
way I
> > can get the utility of a ResourceReference with the security of
a
> > plain old resource? Thanks!
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App
Server.
> Download
> > it for free - -and be entered to win a 42" plasma tv or your
very own
> > Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
<http://sourceforge.net/geronimo.php>
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
<mailto:Wicket-user@lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very
own
Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
<mailto:Wicket-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wicket-user
<https://lists.sourceforge.net/lists/listinfo/wicket-user>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user