NivoReloaded has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!my $my_cgi new CGI; my $upload_filehandle = cgi ->upload('file1'); my $filename = $cgi->param('file1'); $filename =~ s/.*[\/\\](.*)/$1/; if ($upload_filehandle) { open(FILE1, ">$upload_dir/$filename") || print("Could not open fil +e!"); binmode FILE1; while (<$upload_filehandle>) { print FILE1 ; } close FILE1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to save multiple uploaded files on the server?
by Anonymous Monk on Sep 14, 2015 at 00:18 UTC | |
by Anonymous Monk on Sep 14, 2015 at 01:03 UTC | |
by NivoReloaded (Initiate) on Sep 14, 2015 at 01:41 UTC | |
by NivoReloaded (Initiate) on Sep 14, 2015 at 00:53 UTC | |
by Anonymous Monk on Sep 14, 2015 at 01:05 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |