Waylan Limberg wrote:

I envision a simple script that intercepts the
upload submit, checks the actual file size against the specified limit
(perhaps in a hidden field or hard coded in script or even via an ajax
request (but why?)) and either returns an error message or submits the
upload.

No, those projects use Ajax to periodically poll the server about how many bytes already uploaded. This is why the server should feed data to the framework as soon as it receives them and not after it already have got everything. Then your application code on server can really know how much data it's going to get (from Content-Length) and the store data being received to some known location in memory or on disk and tell to parallel Ajax request the progress.

Reply via email to