RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

Newsletter script
Estimate not working?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free
View previous topic :: View next topic  
Author Message
aj_tsm



Joined: 08 Dec 2007
Posts: 3

PostPosted: Dec 08, 2007 4:01 am    Post subject: Estimate not working? Reply with quote

Hello

When uploading a file in Firefox (also happens in IE, I believe) the estimate, next to the time elapsed, simply just sits there saying 0 seconds.

Would be nice if this worked... is there a quick fix for this, developer?

Regards,
AJ
Back to top
View user's profile Send private message
Kuwait



Joined: 16 Jan 2008
Posts: 15
Location: kuwait

PostPosted: Jan 17, 2008 4:45 am    Post subject: Reply with quote

same here , and most of the time the whole upload progress just freeze's which i have to refresh the ie to start all over again..
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PilgrimX182



Joined: 22 Mar 2006
Posts: 1901
Location: UFO Lab

PostPosted: Jan 17, 2008 7:39 am    Post subject: Reply with quote

Yep. My bad. Forgot to fix in XFS1.1

Here goes quick fix:

in upload_status.cgi find
Code:
my ($total,$current,$time,$speed,$files) = split(/:/,$str);

and add this line below it:
Code:
my $estimate = sprintf("%.0f", ($total-$current)/$speed ) if $speed;


then find
Code:
print qq{SP('$currentKB','$time','$speedKB','$files',0);PB($speedKB);} unless $uploaded;

and replace it with
Code:
print  qq{SP('$currentKB','$time','$speedKB','$files','$estimate');PB($speedKB);} unless $uploaded;
Back to top
View user's profile Send private message Visit poster's website
Kuwait



Joined: 16 Jan 2008
Posts: 15
Location: kuwait

PostPosted: Jan 17, 2008 7:41 am    Post subject: Reply with quote

thank you Cool
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PilgrimX182



Joined: 22 Mar 2006
Posts: 1901
Location: UFO Lab

PostPosted: Jan 17, 2008 8:01 am    Post subject: Reply with quote

About freezing - check that there were no JS errors. Will experiment more with AJAX updates today.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group