[Lift] Re: File upload streaming and progress monitoring ...

2009-07-19 Thread Viktor Klang
Awesome work guys! On Sat, Jul 18, 2009 at 8:54 PM, marius d. marius.dan...@gmail.com wrote: Great. Let me know if I can help with anything. Br's, Marius On Jul 18, 9:22 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, This is awesome. Things are now working as expected -

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread marius d.
A little more on this ... Living the above synchronized blocks where they are but removing the one from LiftSession.runParams made it work properly. Looks like this one was holding the lock while the file upload progress was happening. Dave I'm not really sure why in runParams the the toRun is

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread marius d.
Just committed a fix ... Br's, Marius On Jul 18, 4:10 pm, marius d. marius.dan...@gmail.com wrote: A little more on this ... Living the above synchronized blocks where they are but removing the one from LiftSession.runParams  made it work properly. Looks like this one was holding the lock

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread Timothy Perrett
Marius, This is awesome. Things are now working as expected - I knew this wasn't a browser connection issue causing the problems. The code in the widget package is pretty rubbish right now, but i just had time to hack together a hardcoded sample to make sure that your commit actually fix the

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread marius d.
Great. Let me know if I can help with anything. Br's, Marius On Jul 18, 9:22 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, This is awesome. Things are now working as expected - I knew this wasn't a browser connection issue causing the problems. The code in the widget package

[Lift] Re: file upload

2009-06-16 Thread DavidV
I'm still stuck on this problem. Just bringing it to the top of the list again so it's not forgotten... On Jun 15, 4:04 pm, DavidV david.v.villa...@gmail.com wrote: I was able to find the code and have a program ready to parse the files as soon as I can upload them.  I tried writing my own

[Lift] Re: file upload

2009-06-16 Thread TylerWeir
Take a look at: http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d7a46b2/sites/example/src/main/scala/net/liftweb/example/snippet/Misc.scala#L119 It should cast some light on your issue. On Jun 16, 9:54 am, DavidV david.v.villa...@gmail.com wrote: I'm still stuck on this

[Lift] Re: file upload

2009-06-16 Thread DavidV
yes, that's what I was looking for. thanks! On Jun 16, 11:11 am, TylerWeir tyler.w...@gmail.com wrote: Take a look at:http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d... It should cast some light on your issue. On Jun 16, 9:54 am, DavidV david.v.villa...@gmail.com

[Lift] Re: file upload

2009-06-15 Thread DavidV
I was able to find the code and have a program ready to parse the files as soon as I can upload them. I tried writing my own version of the code found here: http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d7a46b2/sites/example/src/main/webapp/file_upload.html but I got the

[Lift] Re: file upload

2009-06-12 Thread Oliver Lambert
Whats serious uploading? I uploaded 15,000 records using it today - seemedto handle it OK. On Fri, Jun 12, 2009 at 9:48 AM, Timothy Perrett timo...@getintheloop.euwrote: FYI - its not a streaming upload at the moment, so its great for smallish files, but you wouldnt want to do much serious

[Lift] Re: file upload

2009-06-12 Thread Timothy Perrett
Hey Oliver, I was referring to large uploads - with the current scheme the entire file is read into memory, so if you upload, say, a 400 or 500mb file you'll find that your entire stack bloats in size. Thanks, Tim On Jun 12, 11:53 am, Oliver Lambert olambo...@gmail.com wrote: Whats serious

[Lift] Re: file upload

2009-06-12 Thread wapgui
I do similar things. First there is a snippet using the bind functionality. var image : FileParamHolder = _ bind(widget, xhtml, image - fileUpload(image = _) } Now write out: val wbos : ByteArrayOutputStream = build(image) val fout = new File(outputFilename) if (fout.exists()) {

[Lift] Re: file upload

2009-06-11 Thread David Pollak
All the code on demo.liftweb.net is in sites/example in the Lift source distribution. Please look in src/main/webapp/file_upload.html On Thu, Jun 11, 2009 at 1:24 PM, DavidV david.v.villa...@gmail.com wrote: I would like to upload a .csv file onto the web server so I can then parse it in my

[Lift] Re: file upload

2009-06-11 Thread Timothy Perrett
FYI - its not a streaming upload at the moment, so its great for smallish files, but you wouldnt want to do much serious uploading with it right now. We've had several discussions about making it streaming, and its certainly on the todo list. Cheers, Tim On Jun 11, 9:24 pm, DavidV