LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > upload progress bar don

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2012, 03:21 AM
Bossa Bossa is offline
New Member
 
Join Date: May 2012
Posts: 7
Default upload progress bar dont working?

hi i download the 15 try days to check if it work and then i want to buy
buy after i install litespeed with my directadmin the progress bar in xfilesharing script is not working someone know how to fix it ?

Last edited by Bossa; 07-01-2012 at 03:35 AM..
Reply With Quote
  #2  
Old 07-01-2012, 11:55 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
do you none of trial or purchased license works for you? or not work for directadmin?
Reply With Quote
  #3  
Old 07-01-2012, 01:36 PM
Bossa Bossa is offline
New Member
 
Join Date: May 2012
Posts: 7
Quote:
Originally Posted by webizen View Post
do you none of trial or purchased license works for you? or not work for directadmin?
i install the Enterprise Edition and it working good with the directadmin
but the upload.cgi file trying to make a status.html file for each upload and its not working so the upload progress bar is nor moving ...
the upload.cgi code is here http://www.text-upload.com/read,3860867817248
like you can see in this lines ..
Code:
	my $str=qq[new Object({"state":"uploading", "size":"$total_size", "received":"0","files_done":"0"})];
	open(F,">$c->{htdocs_tmp_dir}/$sid.html");
	print F $str;
	close F;
	my $mode = 0777;
	chmod $mode,"$c->{htdocs_tmp_dir}/$sid.html";
its creat a status file ... but the litespeed not let him ...
i send email to SibSoft they say its litespeed problem ..
in nginx its working good and apache ..
please fix the bug ...
Reply With Quote
  #4  
Old 07-01-2012, 06:12 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
it should be permission issue. what user upload.cgi run as? htdocs_tmp_dir's permission ?
Reply With Quote
  #5  
Old 07-02-2012, 01:37 AM
Bossa Bossa is offline
New Member
 
Join Date: May 2012
Posts: 7
Quote:
Originally Posted by NiteWave View Post
it should be permission issue. what user upload.cgi run as? htdocs_tmp_dir's permission ?
its 777 like the install say ..
and this is from the install ..
Code:
print"<b>1) Permissions Check</b><br><br>";
my $perms = {
               'logs.txt'  	=> 0666,
               'ipn_log.txt'  	=> 0666,
               'fs.cgi'    	=> 0755,
               'index.cgi' 	=> 0755,
               'index_box.cgi'	=> 0755,
               'index_dl.cgi' 	=> 0755,
               'ipn.cgi' 	=> 0755,
               'cron.pl'   	=> 0755,
               'cron_deleted_email.pl' => 0755,
               'dl.cgi'   	=> 0755,
               'up.cgi'   	=> 0755,
               'uu.cgi'   	=> 0755,
               'upload.cgi'     => 0755,
               'up_flash.cgi'  	=> 0755,
               'api.cgi'        => 0755,
               'XFileConfig.pm' => 0666,
               'XFSConfig.pm'   => 0666,
               'temp'           => 0777,
               'uploads'        => 0777,
               'Templates/static'         => 0777,
               "$c->{site_path}/files"    => 0777,
               "$c->{site_path}/i"        => 0777,
               "$c->{site_path}/captchas" => 0777,
               "$c->{site_path}/tmp"      => 0777,
               "$c->{site_path}/catalogue.rss" => 0666,
               "$c->{site_path}/sitemap.txt"   => 0666,
               "$c->{site_path}/sitemap.txt.gz" => 0666,
            };

Last edited by Bossa; 07-02-2012 at 01:42 AM..
Reply With Quote
  #6  
Old 07-02-2012, 01:53 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
for
Quote:
open(F,">$c->{htdocs_tmp_dir}/$sid.html");
print F $str;
close F;
you add a few lines, e.g.,
Quote:
open(F,">$c->{htdocs_tmp_dir}/$sid.html");
print F $str;
close F;
open(F,">$c->{htdocs_tmp_dir}/test.html");
print F $str;
close F;
then after upload, check if test.html exists, and verify its permission by
ls -l test.html
Reply With Quote
  #7  
Old 07-02-2012, 02:18 AM
Bossa Bossa is offline
New Member
 
Join Date: May 2012
Posts: 7
Quote:
Originally Posted by NiteWave View Post
for

you add a few lines, e.g.,

then after upload, check if test.html exists, and verify its permission by
ls -l test.html
i did this
Code:
	$total_size = $ENV{CONTENT_LENGTH};
	my $str=qq[new Object({"state":"uploading", "size":"$total_size", "received":"0","files_done":"0"})];
  open(F,">$c->{htdocs_tmp_dir}/$sid.html");
  print F $str;
  close F;
  open(F,">$c->{htdocs_tmp_dir}/test.html");
  print F $str;
  close F; 
	my $mode = 0777; chmod $mode,"$c->{htdocs_tmp_dir}/$sid.html";
	$cg = CGI->new(\&hook);
and yes is create the test file and i found its create the status file now but it take a life time to create the file this why the progress bar not working
its create the file like 20 sec after start upload but the test create 1 sec after and the status file not update with the status he stay like he was ..

the upload is ..
Code:
	$total_size = $ENV{CONTENT_LENGTH};
	my $str=qq[new Object({"state":"uploading", "size":"$total_size", "received":"0","files_done":"0"})];
	open(F,">$c->{htdocs_tmp_dir}/$sid.html");
	print F $str;
	close F;
	my $mode = 0777; chmod $mode,"$c->{htdocs_tmp_dir}/$sid.html";
	$cg = CGI->new(\&hook);
the $str look like this
Code:
new Object({"state":"uploading", "size":"4618287", "received":"0","files_done":"0"})

Last edited by Bossa; 07-02-2012 at 02:21 AM..
Reply With Quote
  #8  
Old 07-02-2012, 02:53 AM
Bossa Bossa is offline
New Member
 
Join Date: May 2012
Posts: 7
ok i will stay in apache for the script :\
but can i install litespeed just for the downloads ?
how can i do this ?
Reply With Quote
  #9  
Old 07-02-2012, 06:12 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please refer another thread
http://www.litespeedtech.com/support...ead.php?t=5884

I've asked Mr_Parham if he can share with us. He's running xfiresharing as well.
Reply With Quote
  #10  
Old 09-02-2012, 10:53 AM
Mr_Parham Mr_Parham is offline
Senior Member
 
Join Date: Oct 2011
Posts: 72
Hi

I just noticed this now, do you still have this problem??
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:24 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.