All is good for small file (<1Mb)
but if I try a bigger file no progress bar and error after some seconds
This is the link:
http://venergetic.org/demos/cgi-bin/upload_form.html
Can you help me please?
Thanks in advance
XUpload - Error for big (>1 Mb) files
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Strange, your system & filesystem clock are not synced. In upload_status.cgi replace
with
Should work a bit, but not sured this will fix all problems.
Code: Select all
my $ftime = (lstat($flength_file))[9]; # Upload start time
Code: Select all
my $ftime = time;
Updated:
But still doesn't work.
Code: Select all
sub getTotalSize
{
my $flength_file = shift;
open FILE,$flength_file || die"File open error!";
my $total = <FILE>;
close FILE;
chomp $total;
&DisplayMessage($total) if $total =~ /ERROR/;
my $ftime = time;
return ($total,$ftime);
}