in reply to Re^5: file upload and IO::Handle
in thread file upload and IO::Handle

I'm no web programmer, nor do I play one on TV. Having said that, I'm guessing that your last paragraph contains the clue: Since HTTP is a stateless protocol, you can't rely on a global variable as you don't know *which* sessions upload is occurring. Keep in mind that multiple uploads may occur at one time. I suggest you use more of the original examples code and use the session to store your state.

...roboticus