Hi Iap, Unfortunately, the blobstore doesn't currently support this use-case. We may add support for invariant upload URLs and alternate encapsulation methods in future - feel free to file a feature request in the issue tracker!
-Nick Johnson On Wed, Jan 12, 2011 at 3:54 PM, Iap <iap...@gmail.com> wrote: > Hi, > The official API requires two steps to create an entry in blobstore. > Firstly, get an URL by create_upload_url(), then receive the BlobKey in > redirected handler. > > That doesn't fit into my case. Because: > In client side, I use ajax to send data, which does not send data with > "multipart/form-data", > instead it sends with "X-Requested-With" header and > "application/octet-stream" content-type. > That is because it want to send multiple files one by one immediately, > soon after user has selected the files to upload. (see > http://valums.com/ajax-upload/) > > The url, returned by create_upload_url() can only handles > "multi-part/formdata" > and reject any extra querystring , the filename goes there (ex. > create_upload_url()+'?qqfile=test.jpg'). > So I can not create the blobstore entity by the official two-steps > procedure. > > But I can not find any other way to create blobstore entity. > Any suggestions are appreciated. Thanks in advance. > > iap > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.