in reply to Image Uploading
So, if you want to spit the image back to the browser you can do something like what you've already done. On the other hand, if you want to save the file to the server for safe keeping you can:
The above is straight from the CGI.pm documentation, where OUTFILE is the filehandle to where you want the uploaded image saved to.# Copy a binary file to somewhere safe open (OUTFILE,">>/usr/local/web/users/feedback"); while ($bytesread=read($filename,$buffer,1024)) { print OUTFILE $buffer; }
Gary Blackburn
Trained Killer
|
|---|