[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Massimo Di Pierro
I plan to release a new stable later this week. On Monday, 3 December 2012 11:42:05 UTC-6, Paulo wrote: > > I think I have good news: I tried trunk version instead and the upload of > a 300 mb file worked perfectly! > > I was using the stable 2.2.1 version until now. > > I use web2py in a product

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Paulo
I think I have good news: I tried trunk version instead and the upload of a 300 mb file worked perfectly! I was using the stable 2.2.1 version until now. I use web2py in a production server with other websites online. Is it safe to use trunk version for the final web? Or should I wait for the s

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Massimo Di Pierro
Are you using trunk or stable? Can you try trunk? On Monday, 3 December 2012 03:59:48 UTC-6, Paulo wrote: > > Hi again. > First of all: thanks a lot for your answer Massimo, I know you have a lot > to do, thanks for patiently helping the rookies. > > I had already tried that code (saw from an ol

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Paulo
Hi again. First of all: thanks a lot for your answer Massimo, I know you have a lot to do, thanks for patiently helping the rookies. I had already tried that code (saw from an old post) but it dont work too. Tried again and it gives the same exact error. This is the full code I used: import os

[web2py] Re: Upload directly to the server: error

2012-12-01 Thread Massimo Di Pierro
You cannot do: open(...,'wb').write(form.vars.myfile.file.read()) because this read the entire file in memory before writing it. You need to use http://docs.python.org/2/library/shutil.html and do shutil.copyfileobj(form.vars.myfile.file, open(...,'wb')) Massimo On Friday, 30 November 2012 1