Hi,
I'm going crazy with this!
I can't understand why this is not working!
<form action="{{ upload_url }}" method="POST" enctype="multipart/form-data">
<input type="file" name="foto"/>
<input type="hidden" name="titolo" value="{{ elemento.date }}"/>
<input type="submit"/>
</form>
class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
upload_files = self.get_uploads('foto')
titolo = self.request.get('titolo')
blob_info = upload_files[0]
articolo = db.Query(ARTICOLI).filter('titolo =', titolo)
a = blob_info.key()
for elemento in articolo:
elemento.link = a
elemento.Tlink = images.get_serving_url(a, 94)
elmento.Glink = images.get_serving_url(a, 400)
elemento.put()
self.redirect("/admin")
Could someone help me?
Max
--
My email: [email protected]
My Google Wave: [email protected]
--
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.