Hi all
In this thread
http://www.mail-archive.com/web2py@googlegroups.com/msg47911.html ,
Massimo said that web2py is tested extensively with large files (up to 2GB)
Well, I'm trying to upload just a 150MB tar.gz with this code:
def index():
form = SQLFORM.factory(
Field('archive', 'upload',
uploadfolder='/tmp',
uploadseparate=True),
Field('operation', 'string',
requires=IS_IN_SET(('search', 'add')),
widget=SQLFORM.widgets.radio.widget,
default='search'))
if form.process().accepted:
response.flash = 'File uploaded'
return dict(form=form)
When I do the upload the browser correctly sends all the data but when
web2py starts fetching the data (when the browser says that upload is at
100%), swap and ram start growing a lot until swap is saturated and the
kernel kills the web2py process.
I'm on a 8GB ram, 1GB swap machine.
What am I doing wrong ?
--
Vincenzo Ampolo
http://goshawknest.wordpress.com/
http://vincenzo-ampolo.net/
--
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.