I would like to handle large file uploads to App Engine (Blobstore -> Google Cloud Storage) in my AJAX focused webapp hosted on the same App Engine domain.
From the browser javascript client I call the App Engine server and receive a URL in response (created from 'create_upload_url') but I am stuck with how to take my file and upload it to that URL without getting a cross domain error. I appear to be unable to set CORS headers on the Blobstore receiver and the domain doesn't match the domain my app is serving from ('create_upload_url' appends '1-dot-' to the prefix of the subdomain).
Have any ideas or experience with this?
One idea: since "1-dot-" prefix seems to be just referring to a particular deployed version, perhaps if I parse the url and remove any prefix like that to make the domains the same and submit to that url to avoid a domain mis-match.