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.


Oscar

-- 
   ,-_  Oscar Westra van holthe - Kind      http://www.xs4all.nl/~kindop/
  /() )
 (__ (  I love deadlines. I like the whooshing sound they make as they fly
=/  ()  by.  -- Douglas Adams

------------------------------------------------------------------------------
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

Reply via email to