XUpload - Problem with progress bar

Message
Author
Maris Janelsins
Posts: 2
Joined: Dec 06, 2006 11:15 am

Problem with progress bar

#1 Postby Maris Janelsins » Dec 06, 2006 11:23 am

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

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Dec 06, 2006 12:42 pm

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: Select all

return unless -d $dir;
should help

Maris Janelsins
Posts: 2
Joined: Dec 06, 2006 11:15 am

#3 Postby Maris Janelsins » Dec 07, 2006 7:19 am

Still don't work! :(

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Dec 08, 2006 10:11 am

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

Code: Select all

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

Code: Select all

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