def upload_progress(request):
if '<STR_LIT>' in request.GET:<EOL><INDENT>progress_id = request.GET['<STR_LIT>']<EOL><DEDENT>elif '<STR_LIT>' in request.META:<EOL><INDENT>progress_id = request.META['<STR_LIT>']<EOL><DEDENT>if progress_id:<EOL><INDENT>cache_key = "<STR_LIT>" % (request.META['<STR_LIT>'], progress_id)<EOL>data = cache.get(cache_key)<EOL>return HttpResponse(simplejson.dumps(data))<EOL><DEDENT>
Used by Ajax calls

Return the upload progress and total length values