Problems with FileUpload (on GAE) - how to avoid DiskFileItem?

2010-02-16 Thread A. Maza

Hello,

I trying to implement a file upload for my wicket application, which 
should be deployed on Google App Engine (GAE). Since GAE does not allow 
to spawn new threads, I cannot make use of DiskFileItem due to its use 
of FileCleaner.


The problem is that a DiskFileItem gets instantiated in the 
MultipartServletWebRequest, which results in an AccessControlException 
even before the submit method is called (which would allow to parse the 
request by hand)


Thus, I would like to ask if anyone has a hint how to deal with that 
problem and avoid the instantiation of DiskFileItem?


Thanks a lot in advance,

andr

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with FileUpload (on GAE) - how to avoid DiskFileItem?

2010-02-16 Thread Igor Vaynberg
MultipartServletWebRequest has a constructor that allows you to pass
in your own fileitemfactory

WebRequest has a newMultipartWebRequest that you can override to
create a multipartservletwebrequest with your own fileitemfactory...

-igor

On Tue, Feb 16, 2010 at 10:21 AM, A. Maza andr.m...@gmail.com wrote:
 Hello,

 I trying to implement a file upload for my wicket application, which should
 be deployed on Google App Engine (GAE). Since GAE does not allow to spawn
 new threads, I cannot make use of DiskFileItem due to its use of
 FileCleaner.

 The problem is that a DiskFileItem gets instantiated in the
 MultipartServletWebRequest, which results in an AccessControlException even
 before the submit method is called (which would allow to parse the request
 by hand)

 Thus, I would like to ask if anyone has a hint how to deal with that problem
 and avoid the instantiation of DiskFileItem?

 Thanks a lot in advance,

 andr

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with FileUpload (on GAE) - how to avoid DiskFileItem?

2010-02-16 Thread Andreas Maza
Thanks for that quick response, igor. I created now a very basic and (bad
,-) implementation of FileItemFactory, does not write to disk and doesn't
spawn threads.

With respect to using common-fileupload on GAE, I read about fileupload's
new Streaming API. However, I have currently no clue how to integrate it
with Wicket. Do you have any hints for that?

thanks,
andr




On Tue, Feb 16, 2010 at 7:51 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 MultipartServletWebRequest has a constructor that allows you to pass
 in your own fileitemfactory

 WebRequest has a newMultipartWebRequest that you can override to
 create a multipartservletwebrequest with your own fileitemfactory...

 -igor

 On Tue, Feb 16, 2010 at 10:21 AM, A. Maza andr.m...@gmail.com wrote:
  Hello,
 
  I trying to implement a file upload for my wicket application, which
 should
  be deployed on Google App Engine (GAE). Since GAE does not allow to spawn
  new threads, I cannot make use of DiskFileItem due to its use of
  FileCleaner.
 
  The problem is that a DiskFileItem gets instantiated in the
  MultipartServletWebRequest, which results in an AccessControlException
 even
  before the submit method is called (which would allow to parse the
 request
  by hand)
 
  Thus, I would like to ask if anyone has a hint how to deal with that
 problem
  and avoid the instantiation of DiskFileItem?
 
  Thanks a lot in advance,
 
  andr
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Problems with FileUpload (on GAE) - how to avoid DiskFileItem?

2010-02-16 Thread Igor Vaynberg
noep, haven't looked at that stuff in a while.

-igor

On Tuesday, February 16, 2010, Andreas Maza andr.m...@gmail.com wrote:
 Thanks for that quick response, igor. I created now a very basic and (bad
 ,-) implementation of FileItemFactory, does not write to disk and doesn't
 spawn threads.

 With respect to using common-fileupload on GAE, I read about fileupload's
 new Streaming API. However, I have currently no clue how to integrate it
 with Wicket. Do you have any hints for that?

 thanks,
 andr




 On Tue, Feb 16, 2010 at 7:51 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 MultipartServletWebRequest has a constructor that allows you to pass
 in your own fileitemfactory

 WebRequest has a newMultipartWebRequest that you can override to
 create a multipartservletwebrequest with your own fileitemfactory...

 -igor

 On Tue, Feb 16, 2010 at 10:21 AM, A. Maza andr.m...@gmail.com wrote:
  Hello,
 
  I trying to implement a file upload for my wicket application, which
 should
  be deployed on Google App Engine (GAE). Since GAE does not allow to spawn
  new threads, I cannot make use of DiskFileItem due to its use of
  FileCleaner.
 
  The problem is that a DiskFileItem gets instantiated in the
  MultipartServletWebRequest, which results in an AccessControlException
 even
  before the submit method is called (which would allow to parse the
 request
  by hand)
 
  Thus, I would like to ask if anyone has a hint how to deal with that
 problem
  and avoid the instantiation of DiskFileItem?
 
  Thanks a lot in advance,
 
  andr
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with FileUpload (on GAE) - how to avoid DiskFileItem?

2010-02-16 Thread nicolas melendez
There is one already done.
Someone post it in the official GAE mail list.
Try to look for it.
I will try too.
NM

On Tue, Feb 16, 2010 at 6:00 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 noep, haven't looked at that stuff in a while.

 -igor

 On Tuesday, February 16, 2010, Andreas Maza andr.m...@gmail.com wrote:
  Thanks for that quick response, igor. I created now a very basic and (bad
  ,-) implementation of FileItemFactory, does not write to disk and doesn't
  spawn threads.
 
  With respect to using common-fileupload on GAE, I read about fileupload's
  new Streaming API. However, I have currently no clue how to integrate it
  with Wicket. Do you have any hints for that?
 
  thanks,
  andr
 
 
 
 
  On Tue, Feb 16, 2010 at 7:51 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  MultipartServletWebRequest has a constructor that allows you to pass
  in your own fileitemfactory
 
  WebRequest has a newMultipartWebRequest that you can override to
  create a multipartservletwebrequest with your own fileitemfactory...
 
  -igor
 
  On Tue, Feb 16, 2010 at 10:21 AM, A. Maza andr.m...@gmail.com wrote:
   Hello,
  
   I trying to implement a file upload for my wicket application, which
  should
   be deployed on Google App Engine (GAE). Since GAE does not allow to
 spawn
   new threads, I cannot make use of DiskFileItem due to its use of
   FileCleaner.
  
   The problem is that a DiskFileItem gets instantiated in the
   MultipartServletWebRequest, which results in an AccessControlException
  even
   before the submit method is called (which would allow to parse the
  request
   by hand)
  
   Thus, I would like to ask if anyone has a hint how to deal with that
  problem
   and avoid the instantiation of DiskFileItem?
  
   Thanks a lot in advance,
  
   andr
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org