I have already got it working... In my "wrapping" servlet I simply copy the POST-data into a stream of the uploadURL; this creates blobs and calls then "successUrl" where I store the BlobInfo. Wrapping servlet then sends single character to client.
As for your suggestion, like I said, I'm using a Flash component SWFUpload, not a form. There are two issues with current Flash, at least on Windows: 1) It can not send multiple files in single POST/multi-part request. Therefore the component needs to cycle and make multiple requests. (Document/page remains loaded though.) 2) When the uploading request does return empty response (even when the upload was successful) the component goes nuts. Therefore I need the receiving target to send at least "." in response body. Regards J. Záruba On Wed, May 5, 2010 at 8:02 AM, bimbo jones <[email protected]> wrote: > The way we do it(don't know if it is the best) is to use the blobstore api > to get the url to put in the form action. > > on the 1st servlet you get the blobinfo and what not, then you redirect to > another servlet that can write to the form complete handler. > I'll share some code later today. > > > 2010/5/4 Jaroslav Záruba <[email protected]> > >> Or do you mean I should read the post data, send them to uploadUrl >> using another request I create, and then write response to the >> original one...? >> That might probably work... :P >> >> On May 4, 6:43 pm, Jaroslav Záruba <[email protected]> wrote: >> > Can you be more specific please? >> > (After redirecting request you can't write to its response.) >> > >> > Regards >> > J. Záruba >> > >> > On May 4, 10:01 am, bimbo jones <[email protected]> wrote: >> > >> > >> > >> > >> > >> > > hi, >> > >> > > You can redirect the upload servlet to another servlet that responds. >> > >> > > 2010/5/3 Jaroslav Záruba <[email protected]> >> > >> > > > I'm trying to use SWFUpload for uploading images in my application >> but >> > > > either this particular component or Flash does not like empty >> > > > responses. >> > > > Is it possible somehow to get any content in the response-body from >> > > > uploadUrl? >> > >> > > > Regards >> > > > J. Záruba >> > >> > > > -- >> > > > You received this message because you are subscribed to the Google >> Groups >> > > > "Google App Engine for Java" group. >> > > > To post to this group, send email to >> > > > [email protected]. >> > > > To unsubscribe from this group, send email to >> > > > [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B >> [email protected]> >> > > > . >> > > > For more options, visit this group at >> > > >http://groups.google.com/group/google-appengine-java?hl=en. >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups "Google App Engine for Java" group. >> > > To post to this group, send email to >> [email protected]. >> > > To unsubscribe from this group, send email to >> [email protected]<google-appengine-java%[email protected]> >> . >> > > For more options, visit this group athttp:// >> groups.google.com/group/google-appengine-java?hl=en. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Google App Engine for Java" group. >> > To post to this group, send email to >> [email protected]. >> > To unsubscribe from this group, send email to >> [email protected]<google-appengine-java%[email protected]> >> . >> > For more options, visit this group athttp:// >> groups.google.com/group/google-appengine-java?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-appengine-java%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
