Hi,

To get the file from the request try this :

String filename = getContext().getRequest().getParameter("Filename");
if (StringUtils.isNotEmpty(filename)){
StripesRequestWrapper req = (StripesRequestWrapper)getContext().getRequest();
    FileBean filedata = req.getFileParameterValue("Filedata");
}

FYI I've just posted a example on my blog : http://www.dviel.com/archives/91

Regards

Damien

Le 4 juin 08 à 14:07, Asleson, Ryan a écrit :


Hello,

Has anybody else used Stripes to handle file uploads from a Flash- based component, such as SWFUpload (http://swfupload.org/)?

There's a quirk in the Linux Flash player in which the name of the file data that is uploaded to the server (Stripes, in my case) cannot be changed via scripting, and thus the name of the uploaded file is always "Filedata". The problem is that this does not match JavaBeans naming conventions (due to the capital F) and thus even if I have a setFiledata method on my ActionBean, Stripes won't match it to the "Filedata" name. On Windows Linux players where I can specify a different name, everything works great.

I know this isn't a Stripes problem, but I'm looking for guidance on how to get this to work in Stripes. Ideally I'd like some way for Stripes to match the "Filedata" to some property on the ActionBean, since the file uploading piece in Stripes works so well.

Any help or guidance is greatly appreciated.

Thank you!!

-Ryan



This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Damien Viel
Software Architect - Fullsix France
[EMAIL PROTECTED]



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to