Hi:

    The below document is copied from Blobstore doc. (
http://code.google.com/intl/en/appengine/docs/java/blobstore/overview.html
)

To prompt a user to upload a Blobstore value, your app presents a web
form with a file upload field. The app generates the form's action URL
by calling the Blobstore API. The user's browser uploads the file
directly to the Blobstore via the generated URL. Blobstore then stores
the blob, rewrites the request to contain the blob key, and passes it
to a path in your app. A request handler at that path in your app can
perform additional form processing and return a redirect response.

    The example code in that doc is below.

Map<String, BlobKey> blobs = blobstoreService.getUploadedBlobs(req);
BlobKey blobKey = blobs.get("myFile");

if (blobKey == null) {
    res.sendRedirect("/");
} else {
    res.sendRedirect("/serve?blob-key=" + blobKey.getKeyString());
}


On 7月19日, 下午6時38分, salvatore <[email protected]> wrote:
> Hi all!
>
> I have two jsp,
>     -one whith a form for upload a file
>     -one for managing upload
>
> But, stil the upload goes fine , I recive this warning
>
> 19-lug-2010 12.11.15
> com.google.appengine.api.blobstore.dev.UploadBlobServlet$3$2 write
> GRAVE: Must only return a redirect from a Blobstore upload callback.
> 19-lug-2010 12.11.15 com.google.apphosting.utils.jetty.JettyLogger
> warn
> AVVERTENZA: Committed before 500 Expected a redirect, tried to write
> content instead.
> 19-lug-2010 12.11.15 com.google.apphosting.utils.jetty.JettyLogger
> warn
>
> what does it mean?

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

Reply via email to