Thank you v. Are you sure the problem is the file content and not the file name or the file size? Which verison of web2py do you have? I any case, can you post the complete traceback?
Massimo On Dec 22, 2:01 pm, v <vishal...@gmail.com> wrote: > Hi Massimo, > > First of all, thanks for creating web2py.. AMAZING work!! Highly > intuitive and almost flat learning curve, compared with RoR and > Django. > > I was trying the mywiki example from the web2py manual and while the > documents upload/download worked fine locally with SQLite, it doesn't > quite work with GAE datastore, especially for non-ascii documents > uploads. Works fine with ASCII file uploads. > > I'm using web2py 1.74.3. Wonder if there's a generic limitation to > upload binary files on GAE using web2py? here's my db.py: > > --------- > if request.env.web2py_runtime_gae: > db = DAL('gae') > session.connect(request, response, db=db) > else: > db = DAL('sqlite://storage.sqlite') > > <snip> > > db.define_table('document', > SQLField('timestamp', 'datetime', default=now), > SQLField('page', db.page), > SQLField('name'), > SQLField('file', 'upload', > uploadfield='file_storage'), > SQLField('file_storage', 'blob')) > -------- > > Thanks in advance. > > Best Regards, > - V -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.