Hi,
sorry for my bad English.
I've designed an upload progress bar using AJAX and the CGI.pm's hook functionality. Basicly, the hook is writing a percent of progress to a temp file and another script called by AJAX is reading this file. Suddenly when everything started to work I've came up with the problem of how to determine which user is currently uploading (since there is only one temp file). An ideal solution would be to pass a query parameter with an ID to the hook. But as I scoped through google and CGI's doc, it seems impossible since the hook functions reference and all it's parameters need to be declared when creating a CGI object. Please, prove me wrong.