hello,

to upload the data I'm using the copystream example provided in this
thread: 
http://groups.google.com/group/web2py/browse_thread/thread/67912959c7f021e1/

random_name=str(time.time())+str(randint(10000,99999))
filename=os.path.join(request.folder,'uploads',random_name)
copystream(request.body, open(filename,'wb'), int
(request.env.content_length))
db.yourtable.insert(file=filename,.....other fields....)

> the cherrypy server has no limitations and I tested it.
even a GB sized file?

Richard


On May 13, 10:48 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> the cherrypy server has no limitations and I tested it.
> lighttpd should have none either but I cannot swear by the fcgi driver
> that ships with web2py.
> What's the code these tests?
>
> Massimo
>
> On May 13, 3:23 am, Richard <richar...@gmail.com> wrote:
>
> > sorry I was wrong - I'm using the default cherrypy wsgiserver and not
> > Lighttpd.
> > What kind of streaming limitations would you expect from the cherrypy
> > wsgiserver?
>
> > Richard
>
> > On May 13, 6:18 pm, Richard <richar...@gmail.com> wrote:
>
> > > hello,
>
> > > I am running web2py with Lighttpd/Sqlite on Windows. I have found that
> > > streaming small files (few MBs) is no problem, but a ~50MB file makes
> > > the server seize up so that I have to reset.
> > > Would you expect that kind of performance from Lighttpd, or do you
> > > expect the problem is elsewhere? (Generally I use Linux but this is
> > > for work.) I've heard Lighttpd is used by some high profile sites so
> > > it ought to be more stable.
>
> > > Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to