On Wed, Apr 8, 2009 at 6:11 PM, Oscar Westra van Holthe - Kind <
[email protected]> wrote:
> On 08-04-2009 at 13:30, Jakub Zverina wrote:
> > For some reason (I guess file uploads?) Stripes need a temporary
> directory
> > on the filesystem. That is a problem if the app is deployed to Google App
> > Engine, which does not support (RW) filesystem access. When application
> is
> > starting following exception is risen:
> [...]
>
> > Is there a way how to solve this? Somehow
> > replace DefaultMultipartWrapperFactory? Or maybe use ServletContext which
> > for javax.servlet.context.tempdir returns some directory which exists in
> the
> > environment? Thank you for any tips. I'm OK with application not being
> able
> > to upload files :)
>
> The solution is to create your own MultipartWrapper class, and configure it
> as per http://www.stripesframework.org/display/stripes/File+Uploads
>
> In your implementation, you can use Commons File Upload (link is on the
> page), with your own implementation of FileItemFactory. The default
> provided
> implementations all use the file system for all/large files, so you need to
> roll your own.
>
Thanks, your point was very helpful. For starters I initialized
StripesFilter with my own MultipartWrapperFactory which was just an empty
implementation and it's working. I will try to figure out file uploads later
:) Thanks again.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users