3

I am using the python version of Google AppEngine. I want to be able to be able to serve and upload blobs from/into the blobstore using the same URL. As an example, lets say a user can upload a display picture for himself. A GET request to /user/USERNAME/avatar will return the image, whilst a POST request to the same URL will set it.

AFAIK, this isn't possible, as each action requires a different kind of handler.

Sure, I could just use two handlers, but that's a kludge, and I have OCD when it comes to these things.

1
  • Is using the same URL more important to you than using the Blobstore API? This is fairly easily accomplished if you're willing to store the image in the datastore instead of in Blobstore. Commented Sep 5, 2010 at 16:37

1 Answer 1

2

This isn't possible, not because of handler 'kinds' - these are just convenience subclasses that do some extra work for you - but because uploads have to be to a specific, runtime-generated URL.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.