Closed GoogleCodeExporter closed 9 years ago
I override this part of code within the saveFile() function:
open( BIN, ">$bin_file" ) || return;
binmode(BIN);
my ($data, $n);
while ($n = read($fd, $data, 65536)) {
print BIN $data;
}
close(BIN);
to--> copy($data_file, $bin_file);
And now it's working!!!! :-)))
Original comment by sergi.na...@gmail.com
on 12 Nov 2013 at 1:08
The problem with your fix is that it does not work with a request with multiple
files.
$data_file contains all the POST payload including boundaries, so I think your
files could be corrupted.
Could you try to replace read by sysread, and let me know if it works?
Original comment by manuel.carrasco.m
on 31 Dec 2013 at 4:54
Original comment by manuel.carrasco.m
on 13 Jan 2015 at 10:44
Original issue reported on code.google.com by
sergi.na...@gmail.com
on 12 Nov 2013 at 11:48