in reply to File upload under Apache2
http://search.cpan.org/~lds/CGI.pm-3.49/lib/CGI.pm#PROCESSING_A_FILE_UPLOAD_FIELD
or$lightweight_fh = $q->upload('field_name'); # undef may be returned if it's not a valid file handle if (defined $lightweight_fh) { # Upgrade the handle to one compatible with IO::Handle: my $io_handle = $lightweight_fh->handle; open (OUTFILE,'>>','/usr/local/web/users/feedback'); while ($bytesread = $io_handle->read($buffer,1024)) { print OUTFILE $buffer; } }
$filename = $query->param('uploaded_file'); $tmpfilename = $query->tmpFileName($filename);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File upload under Apache2
by Bruce32903 (Scribe) on Aug 16, 2010 at 04:20 UTC | |
by Anonymous Monk on Aug 16, 2010 at 04:36 UTC | |
by tospo (Hermit) on Aug 16, 2010 at 09:11 UTC | |
by Anonymous Monk on Aug 16, 2010 at 09:31 UTC | |
by tospo (Hermit) on Aug 16, 2010 at 13:56 UTC | |
|