SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Problem with progress bar

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
Maris Janelsins



Joined: 06 Dec 2006
Posts: 2

PostPosted: Dec 06, 2006 11:23 am    Post subject: Problem with progress bar Reply with quote

Hello,

We are interested in purchasing your program, but are having some difficulty getting the progress bar to show.

Here is the page we are working with:
http://www.waywithwordsonline.com/upload_form.html

Below are our settings:

xuploadconfig.pm:

# Directory for temporary using files
temp_dir => '/home/waywithw/waywithwordsonline.com/upload/tmp',

# Directory for uploaded files
target_dir => '/home/waywithw/waywithwordsonline.com/upload/files',

# Path to the template using for upload status window
templates_dir => '/home/waywithw/waywithwordsonline.com/cgi-bin/templates',

.htaccess
<IfModule mod_security.c>
SetEnvIfNoCase Content-Type \
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>

all .cgi fiels are set at CHMOD 755

cgi-bin is set at CHMOD 755

root/upload, root/upload/tmp and root/upload/files are all set at CHMOD 777



See any issues there?

Maris
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Dec 06, 2006 12:42 pm    Post subject: Reply with quote

A bit rare problem, it is solved in Pro version.
Here goes quick hack:

in upload.cgi add this link before "opendir(DIR, $dir) || die"Error2";"
Code:
return unless -d $dir;


should help
Back to top
View user's profile Send private message Visit poster's website AIM Address
Maris Janelsins



Joined: 06 Dec 2006
Posts: 2

PostPosted: Dec 07, 2006 7:19 am    Post subject: Reply with quote

Still don't work! Sad
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Dec 08, 2006 10:11 am    Post subject: Reply with quote

You've added code to the wrong place. Should add to line 167:
change
Code:

sub SaveFile2
{
   my ($temp,$dir,$fname) = @_;
   rename($temp,"$dir/$fname");
}


to

Code:

sub SaveFile2
{
   my ($temp,$dir,$fname) = @_;
   return unless -d $dir;
   rename($temp,"$dir/$fname");
}
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload 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