hi you may upload your videos on http://pmedia4u.com its free and provide
you a 1GB limits

On Sat, Sep 4, 2010 at 11:52 PM, Cluster <[email protected]> wrote:

> Hello, ALL. I m trying to make kindo progress bar on app engine and
> with clientside JsUpload lib.
>
> (below it is all about on production, not on local dev, cause of it is
> not supporting simult reqeusts, thats pitty yoo)
>
> When parsing post request with file uploading multipart encoded data
> (POST method), i'm setting some "progress_key" in memcache, and
> concurrently ajax lib is asking for this progress by get() request
> (GET method) multiple times (until the progress value 'done' will be
> eq to 'total'), and method it calls must return this "progress_key"
> from memcache.
> It is very wierd, i do see my post() method setting this key during
> request body reading, but ajax call gets always None from memcache.
> And when post() is finished (i see it in logs), ajax get() call
> suddenly gets the right value
>
> progress_key is absolutely the same for get() and post() handlers,
> actually, it is the same handler, and self.sid which is used for
> creating progress_key is gitten from cookie, i checked the logs, key
> is really the same
>
> what can be wrong here? where is the error?
>
>    def updateProgress(self, done,total): # during post()
>        log("UPDATING PROGRESS:"+str("%i/%i" % (done,total)))
>        key = "PROGRESS_"+self.sid
>        log("KEY:"+key)
>        memcache.set(key,(done,total))
>        log("UPDATED"+str(memcache.get(key)))
>
>
>    def getProcess(self): # during get()
>        key = "PROGRESS_"+self.sid
>        progress = memcache.get(key)
>        if not progress:
>            progress = (0,0)
>        (done,total) = progress
>        ...
>        self.response.out.write("%i %i" % (done,total))
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to