How to intercept uploaded data

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to intercept uploaded data

Herbert König

please consider the following scenario:

-The application asked the user to upload some data.
-The user selects a file but mistakenly selects the last video he
-At some time Aida (Smalltalk to be more precise) will run out of memory.

So here's the question:
Where to intercept the uploaded stream, count the bytes and how to
cancel the operation when a reasonable amount of data has been exceeded?

I have successfully intercepted the HTTP POST request which in its
postData underlyingCollection has the WriteStream with the uploaded
data but I have no clue about how to follow the Stream getting data
and how to abort the operation.

Any pointers welcome.


Herbert                          mailto:[hidden email]

Aida mailing list
[hidden email]