Hello web2py users,
I'm working on an application that involves image uploads to be
deployed on the Google App Engine.
I have a table that looks like:

db.define_table('submission',
    Field('image', 'upload', uploadfield="myblob"),
    Field('myblob', 'blob'))

and a form like this:

form = SQLFORM.factory(
            Field('image', 'upload',
requires=IS_UPLOAD_FILENAME(extension='jpg|jpeg|bmp|png')),
        )


When I run locally it on the gae sdk, I get the following traceback:

Traceback (most recent call last):
  File "/home/krm/google_appengine/apps/newsnow/gluon/restricted.py",
line 188, in restricted
    exec ccode in environment
  File "/home/krm/google_appengine/apps/newsnow/applications/newsnow/
controllers/default.py:post", line 196, in <module>
  File "/home/krm/google_appengine/apps/newsnow/gluon/globals.py",
line 95, in <lambda>
    self._caller = lambda f: f()
  File "/home/krm/google_appengine/apps/newsnow/applications/newsnow/
controllers/default.py:post", line 66, in post
  File "/home/krm/google_appengine/apps/newsnow/gluon/sqlhtml.py",
line 1123, in accepts
    newfilename = field.store(source_file, original_filename)
  File "/home/krm/google_appengine/apps/newsnow/gluon/dal.py", line
4260, in store
    raise RuntimeError, "you must specify a
Field(...,uploadfolder=...)"
RuntimeError: you must specify a Field(...,uploadfolder=...)


Is there anything I'm missing?

Reply via email to