<th><label for="image">Image</label></th><td><input type="file" name="image" id="form-image"></td>
RenderErrorPage(c, w, err, err.String())return
blobs, values, err := blobstore.ParseUpload(r)if err != nil {
RenderErrorPage(c, w, err, err.String())return
}
> tc := &accountTemplateContext{ Messages: []string{}, UploadURL:
> uploadURL.Raw }
Have you tried using just "uploadURL" here (and adjusting the
accountTemplateContext field's type), or "uploadURL.String()" (if you
don't want to change other code)?
Dave.
> So I was hoping maybe 1.6.0 would fix this issue, but it hasn't. I know
> using the blobstore is working for some people, but I'm still getting this
> error. Can anyone tell me ANY reason why this error would be returned? To
> summarize:
> - It happens whether I actually select an image or not
> - It happens on Safari, Firefox, and Chrome
> - I have only tested so far on the dev server (on Mac OS 10.7.2)
It would be informative to know whether you can reproduce this in
production. Can you give that a try?
Dave.
> This just bit me after updating gae, and I solved it for my own app. The
> problem is that http.Request.ParseForm() appears to not, in fact, be
> idempotent.
It's idempotent, but that's not what you mean, or tripped over.
ParseForm modifies the request, so blobstore.ParseUpload can not read
the HTTP body.
Dave.