XFileSharing Pro - bug in 1.8: htdocs_tmp_dir not used in upload.cgi for status

Message
Author
mrperl
Posts: 65
Joined: Mar 06, 2010 11:40 am

bug in 1.8: htdocs_tmp_dir not used in upload.cgi for status

#1 Postby mrperl » Sep 25, 2010 11:47 pm

status.html is not found by upload.cgi if you change the html directory.

htdocs_tmp_dir is not used to help find status.html.

For example:

XFSConfig.pm: htdocs_tmp_dir => '/var/www/html/xfs/tmp',

When a user does an upload, a message is briefly displayed saying that status.html is not found.

Moving tmp/status.html up 1 level works fine.

mrperl
Posts: 65
Joined: Mar 06, 2010 11:40 am

Re: bug in 1.8: htdocs_tmp_dir not used in upload.cgi for st

#2 Postby mrperl » Oct 19, 2010 1:22 pm

ok, to fix this problem, comment out this line in index.cgi:

# $server->{srv_htdocs_url}=~s/\/(\w+)$//;

mrperl

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

#3 Postby PilgrimX182 » Oct 19, 2010 5:23 pm

htdocs_tmp_dir is used on FILE server to specify folder for status info files and yes, it should be the same where you have status.html. We don't have to find status.html on FILE server.

And there could be a problem only if you haven't specified /files or something in the end of "files URL". Not sure why you will need this.