Google App Engine - Uploading blobs and authentication
Posted
by Keyur
on Stack Overflow
See other posts from Stack Overflow
or by Keyur
Published on 2010-04-27T20:10:27Z
Indexed on
2010/04/27
20:13 UTC
Read the original article
Hit count: 347
(I tried asking this on the GAE forums but didn't get an answer so am trying it here.)
Currently to upload blobs, the app engine's blob store service creates a unique one- time URL that a user can post blobs to. My requirement is that I only want authenticated / authorized users to post blobs in my application. I can achieve this currently if the page that includes the multipart form to upload blobs is in my application.
However, I am looking to providing a "REST API" for my users to upload their blobs. While it is true that the one-time nature of the upload URL mitigates the chances of rogue use but it's still possible.
I was wondering if there is anyone on the app engine team here that can consider a feature where developers can register an upload listener. (Or if there is already a way, I'll be all ears). A standard servlet filter could also potentially do the job. This will give us an opportunity to authenticate / validate / decorate requests before the request gets forwarded to the blob store service.
Thanks, Keyur
© Stack Overflow or respective owner