Question

I am looking for a pure Javascript/Python upload example, that uses server polling instead of client-side SWF to display upload progress (like the one on rapidshare.com for example)

Currently, website is running on the standalone wsgi server included with Werkzeug framework, but may be moved to mod_wsgi if the load increases.

I've tried the gp.fileupload middleware, but can't get it to work. Examples on their website wont work either :|

Website already uses Glow library for other misc client-side stuff, but there is no specific upload-related functionality in it.

Was it helpful?

Solution

If you don't have support on the web side to track the size of the temporary file (or in-memory buffer) of the uploading data as it arrives, I don't know how you'll do this. Some of the popular web servers have special support for this, mostly experimental, but it's not widely supported and what you're trying to do is pretty awkward in general. I've researched this recently and it's pretty poorly supported all around.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top