Does anyone know how to wait for a file upload to finish?  I do this
section of code like the docs:

def handle_uploaded_file(f):
    ...
    for chunk in f.chunks():
        destination.write(chunk)
     ....
     ex_function()
     ....

but while a large file is writing out the code continues after this
call straight to ex_function().  I need to wait until the file is
completely uploaded until I call that function.  Any help would be
greatly appreciated.

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

Reply via email to