Re: Separate file stream from request input stream while upload

2012-08-08 Thread Javier Guerra Giraldez
On Wed, Aug 8, 2012 at 3:05 AM, Russell Keith-Magee wrote: > Not really. This isn't something that's Django specific -- it's a > general problem with web browsers. Web browsers make requests. > Background requests are still requests, and they need to happen in the >

Re: Separate file stream from request input stream while upload

2012-08-08 Thread Kurtis Mullins
Check out nginx. It can be configured to separately upload a file and provide a status indicator. I'm not sure if you could still retrieve the WSGI Request separately or not -- but you could always take the AJAX route like Russ suggested. On Wed, Aug 8, 2012 at 6:42 AM, Jian Chang

Re: Separate file stream from request input stream while upload

2012-08-08 Thread Jian Chang
是不是可以用异步来完成? ajax upload 2012/8/8 Russell Keith-Magee > On Wed, Aug 8, 2012 at 2:42 PM, 春燕 李 wrote: > > Thanks ! > > > > In my application, I want to upload image files(such as *.iso) which > > are always large, it will take long time before the

Re: Separate file stream from request input stream while upload

2012-08-08 Thread Russell Keith-Magee
On Wed, Aug 8, 2012 at 2:42 PM, 春燕 李 wrote: > Thanks ! > > In my application, I want to upload image files(such as *.iso) which > are always large, it will take long time before the uploading > completed. During this time, I cannot send out other request on > current page,

Re: Separate file stream from request input stream while upload

2012-08-08 Thread 春燕 李
Thanks ! In my application, I want to upload image files(such as *.iso) which are always large, it will take long time before the uploading completed. During this time, I cannot send out other request on current page, because a new request will refresh the current page and make the uploading

Re: Separate file stream from request input stream while upload

2012-08-07 Thread Russell Keith-Magee
On Wed, Aug 8, 2012 at 10:11 AM, 春燕 李 wrote: > As you know, Django can process file uploading with its own > uploadhandler. But all the request data is processed as stream, and > mod_wsgi provides a way to read the stream, what you can do is just > read the stream

Separate file stream from request input stream while upload

2012-08-07 Thread 春燕 李
As you know, Django can process file uploading with its own uploadhandler. But all the request data is processed as stream, and mod_wsgi provides a way to read the stream, what you can do is just read the stream sequentially, which means that you cannot separate file stream from the request