Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
That was populating the file contains variable every time. Now, $_tFileContains is blank, always. Yet the filename is there, so I know it is getting the file, I have tried a lot of different files, even ones that worked in the past. Nothing.my $filename = param("incoming"); my $handle = upload("incoming"); $filename =~ s/(?:\\|\/)([^\\\/]+)$/$1/g; my $buffer; my $_tFileContains = ""; while (read($handle,$buffer,2048)) { $_tFileContains .= $buffer }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File upload quit working
by Anonymous Monk on Jan 19, 2012 at 10:22 UTC | |
|
Re: File upload quit working
by Anonymous Monk on Jan 19, 2012 at 12:23 UTC | |
by Anonymous Monk on Jan 19, 2012 at 12:42 UTC | |
|
Re: File upload quit working
by Anonymous Monk on Jan 19, 2012 at 09:06 UTC |