Hi there,

I wrote a previous post but I have discovered a bit more since. Here's
my situation:

What I'm trying to do: Write a custom upload handler that allows me to
intercept it with Javascript calls and return a simple progress upload
bar to the user.

What is happening: The custom upload handler works, data is being
sent, the session is being set WITHIN the handler but when I call the
function from Javascript to fetch the progress (or even from a simple
manual GET) it does not return anything because it does not recognize
the session

What I found though, is that the view that is being called from JS
will finally have access to the session variable after the upload is
complete which in this case makes it totally useless since I'm trying
to track the progress and not just show them "Uploading ..."

I know that on dev server this WONT work because it is single
threaded. However, I tried it on my hosting (mediatemple) where they
use lighttpd/fcgi and still no go

Here is a dpaste of my upload handler and the accomponying view where
I call it:
http://dpaste.com/85623/

Additionally, here is the dpaste for my upload_progress view which is
called from Javascript
http://dpaste.com/85624/

Some commenting and such because I've been switching between cache and
sessions for debugging

I've verified that the Progress ID's being passed are the SAME ones so
there is no issue in terms of the wrong key being sent. I even tried
setting an explicit key like 'upload' that was not dynamic in any way
and still nothing.

So that's where I stand now at this. The progress view just cant get
the request.session variable. It shows up, eventually but not when I
need it. I figure I might be doing something silly but I don't know
anymore

Thanks in advance for anyones help, this has been a brutal problem but
it would be LOVELY to get it figured out :)
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to