Preprocessing uploads.. (guess its advanced)
Posted: Tue Feb 04, 2003 9:42 am
Hi!
I'm hitting the wall with a little problem.
Its file uploads. No problem getting them to the server, or getting the file or the size or anything.
Now: Its a fact that the client sends CONTENT_LENGTH in the header, and that apache will set that variable before any more data is received.
I also know that I can use a cgi script to receive the content of the POST as it is uploaded (stdin).
Then I want the best of both worlds, the session of my client, the ready parsed output from my action script AND access to the upload while its uploaded
All of wich is possible, but how on earth can I convince php to give me access while uploading 
Ideas please!
I'm hitting the wall with a little problem.
Its file uploads. No problem getting them to the server, or getting the file or the size or anything.
Now: Its a fact that the client sends CONTENT_LENGTH in the header, and that apache will set that variable before any more data is received.
I also know that I can use a cgi script to receive the content of the POST as it is uploaded (stdin).
Then I want the best of both worlds, the session of my client, the ready parsed output from my action script AND access to the upload while its uploaded
Ideas please!