I'm in the process of trying to write an Upload Progress Bar for my app.
I'm using the latest trunk version of Django, mod_python 3.3.1,
Memcached, Apache 2.2.8 prefork, and YUI 2.6.
I cannot seem to access the values stored in the cache during upload
(hoping to retrieve the 'uploaded' value for updating the progress
bar), however I can access them once the file has been successfully
uploaded. Are there issues with this setup that will not allow this,
or is it an issue with my logic?
The code is largely inspired by the http://www.fairviewcomputing.com/
blog/2008/10/21/ajax-upload-progress-bars-jquery-django-nginx/ example.
I've tried to only show what's relevant, and some of the JS is just
there to test the concept.
upload_progress view
http://dpaste.com/89036/
UploadHandler
http://dpaste.com/89037/
YUI JS save method
http://dpaste.com/89038/
I just want to be able to access the cache to return a JSON object
during upload.
Any help would be greatly appreciated.
Cheers
Pawel