| View previous topic :: View next topic |
| Author |
Message |
Maris Janelsins
Joined: 06 Dec 2006 Posts: 2
|
Posted: Dec 06, 2006 11:23 am Post subject: Problem with progress bar |
|
|
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 |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Dec 06, 2006 12:42 pm Post subject: |
|
|
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 |
|
 |
Maris Janelsins
Joined: 06 Dec 2006 Posts: 2
|
Posted: Dec 07, 2006 7:19 am Post subject: |
|
|
Still don't work!  |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Dec 08, 2006 10:11 am Post subject: |
|
|
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 |
|
 |
|
|
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
|