Perl CGI Upload Issue (Monday, April 11th, 2005) |
Quick tip for anyone using CGI.pm to handle file uploads: with the new
version of CGI, you need to make sure you're not creating multiple CGI
objects (i.e. doing So, if you're moving a script from an old server to a new server, and
you have CGI objects being created in multiple places (perhaps in multiple
modules), you need to use a global like It looks like this change was made as a workaround for the Win32 platform. Previously, temp files would be unlinked as soon as they were opened, so that as soon as they were closed they would be automatically deleted; on Win32 you can't unlink an open file, so they can't be unlinked until you're done with them. |
Themes |
Random Quote |
“Everything that can be invented has been invented.”
- Charles H. Duell, Commissioner, U.S. Office of Patents, 1899 |