XUpload - Error for big (>1 Mb) files

XUpload related questions

Moderator: admin

Message
Author
hanicker
Posts: 2
Joined: Jul 27, 2007 11:59 am

Error for big (>1 Mb) files

#1 Postby hanicker » Jul 27, 2007 12:01 pm

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? :wink:

Thanks in advance

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Jul 27, 2007 12:26 pm

Strange, your system & filesystem clock are not synced. In upload_status.cgi replace

Code: Select all

my $ftime = (lstat($flength_file))[9]; # Upload start time


with

Code: Select all

my $ftime = time;


Should work a bit, but not sured this will fix all problems.

hanicker
Posts: 2
Joined: Jul 27, 2007 11:59 am

#3 Postby hanicker » Jul 27, 2007 1:32 pm

Updated:

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);
}


But still doesn't work.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests