Hi Massimo,

I am going to make a web application in which, requires to upload more than 
100 Mb file at a time, please give us the details in web2py is it possible ?

On Sunday, June 17, 2012 4:58:11 AM UTC+5:30, Massimo Di Pierro wrote:
>
> web2py does not load the uploaded file in Ram (unless the the is uploaded 
> to db). The error reported Sanjeet is in fact different. It runs out of 
> memory trying to serialize a helper, after the file has been uploaded 
> completely.
>
> Massimo
>
> On Saturday, 16 June 2012 17:22:14 UTC-5, Khalil KHAMLICHI wrote:
>>
>> A few weeks ago, I had similar problem with uploading big files (starting 
>> from 100Mb), I could never figure out what was the reason ... I could just 
>> understand that web2py loaded the files into memory (for some reason) and 
>> that caused the whole process to crash, that was my analysis but maybe it 
>> was biased by the fact that the server was a virtual machine with I think 
>> 1gig of Ram.
>> Anyway I confirm the existence of a problem with uploads larger than 
>> 100Mb.
>>
>>
>> On Sat, Jun 16, 2012 at 10:45 PM, Massimo Di Pierro <
>> massimo.dipie...@gmail.com> wrote:
>>
>>> The error you get is not in uploading the file but in trying to display 
>>> something very large. I suspect there is something in your model that is 
>>> causing the problem. Can we see your model?
>>>
>>>
>>>
>>> On Saturday, 16 June 2012 00:15:35 UTC-5, Sanjeet Roy wrote:
>>>>
>>>> Can i upload the more than 100 mb file using web2py when i tried got 
>>>> the error:-
>>>>
>>>>
>>>> Traceback (most recent call last):
>>>>   File "/home/tls-sanjeet/Desktop/**web2py/gluon/restricted.py", line 205, 
>>>> in restricted
>>>>
>>>>
>>>>     exec ccode in environment
>>>>   File 
>>>> "/home/tls-sanjeet/Desktop/**web2py/applications/upload_**test/views/appadmin.html"
>>>>  
>>>> <http://127.0.0.1:8000/admin/default/edit/upload_test/views/appadmin.html>,
>>>>  line 56, in <module>
>>>>
>>>>
>>>>     {{if rows:}}
>>>>   File "/home/tls-sanjeet/Desktop/**web2py/gluon/globals.py", line 182, in 
>>>> write
>>>>
>>>>
>>>>     self.body.write(xmlescape(data**))
>>>>
>>>>
>>>>   File "/home/tls-sanjeet/Desktop/**web2py/gluon/html.py", line 114, in 
>>>> xmlescape
>>>>
>>>>
>>>>     return data.xml()
>>>>
>>>>
>>>>   File "/home/tls-sanjeet/Desktop/**web2py/gluon/html.py", line 848, in xml
>>>>
>>>>
>>>>     (fa, co) = self._xml()
>>>>
>>>>
>>>>   File "/home/tls-sanjeet/Desktop/**web2py/gluon/html.py", line 839, in 
>>>> _xml
>>>>
>>>>
>>>>     self.components])
>>>>
>>>> MemoryError
>>>>
>>>>
>>>>
>>

Reply via email to