« Return to Thread: Streaming Uploads Discussion

Re: Streaming Uploads Discussion

by Mike Axiak :: Rate this Message:

Reply to Author | View in Thread


One slight modification so far...

On Mar 19, 12:30 am, Mike Axiak <mcax...@...> wrote:

> Hello,
>
> [...]
>
> FileUploadHandler
> -----------------------
> Objects of this type must define the following methods:
>    1. new_file(filename, content_length) -- A signal that a new file
>        has been reached by the parser.
>    2. receive_data_chunk(raw_data, start, stop) -- Some data has been
>        received by the parser. A non-nonzero return value indicates
> that
>        the file upload should cease.

Scratch that return value. You will have to raise StopUpload and
SkipFile to stop the entire upload and skip the file respectively.

>
>
> Cheers,
> Michael Axiak

-Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django developers" group.
To post to this group, send email to django-developers@...
To unsubscribe from this group, send email to django-developers-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Streaming Uploads Discussion