in reply to File source from memory
You need to check CGI a bit more carefully in the section entitled "CREATING A FILE UPLOAD FIELD". You don't open the $uploadfile. You can read from it directly as if it were a filehandle. This is, IMO, kinda silly. So, instead, you can get the filehandle directly using my $fh = CGI::upload('upload');. If you don't want to save it at all, check out CGI::upload_hook (which is not exported by default).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File source from memory
by Anonymous Monk on Feb 18, 2005 at 18:37 UTC |