I think you are right about BlobstoreUploadHandler limitations. When I
tried something like:
class X(db.Model):
N = db.StringProperty()
S = db.StringProperty()
F = blobstore.BlobReferenceProperty()
class Upload(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
upload_files = self.get_uploads('file')
a=upload_files[0]
N = self.request.get('name')
S = self.request.get('sname')
if S:
m=N + S
else:
m=S + N
self.response.out.write(N)
self.response.out.write(S)
a=X(N=m, S=S, F=a)
a.put()
return self.redirect('/')
It worked partly. I mean I put my model to datastore and file to
blobstore. However, it does not writes the thing like:
self.response.out.write(N). What I understand here we cannot use
everything in BlobstoreUploadHandler.
Also if you request the form fields, it does not work.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en.