Currently in: Web File Browser > Support


Web File Browser uses the TreeView control for the expandible/collapsible tree control. For information about issues about the actual TreeView control, make sure to read the TreeView Support pages.

Frequently Asked Questions

To show or hide an answer, click on the question.

Q. I installed Web File Browser, but it is not working correctly. Can you help?

A. The most likely cause is that the siteVARrootDir variable is not set correctly. Did you make sure to assign a filesystem path to this variable? If so, did you make sure to use the correct directory name delimiters for your environment? The comments in your configuration file indicate the correct slashes to use. If you did all of the above correctly, then you need to make sure that you did not introduce a typo in the pathname and that the filesystem and Web server permissions are set up correctly. For more information, see the Documentation.

Q. I am using an ASP Web hosting account and don't know the filesystem path to my directory. What should I do?

A. You can use the following script to determine the filesystem path. Open a text editor, and copy the following one-line ASP script to this file:
Save the file with the name findpath.asp and place it in the directory on your Web hosting account where Web File Browser is located. When you load this file in the browser, the browser will indicate the filesystem path to this file.

Q. How can I change the title of the PHP Web File Browser page?

A. If you are using the frame-based layout, open the frameset.html page in a text editor, and change the value of the <title> tag. If you are using the frameless layout, open the treeOfFiles.php or webfilebrowser.asp page (the page you open depends on whether you purchased the PHP or the ASP version) in a text editor, and change the value of the <title> tag.

Q. I have the PHP file browser, how can I change the icon for the root node?

A. Make sure that the icon is 24 pixels x 22 pixels. And for best results, try to place the actual image towards the left-hand side of the available space. Open treeOfFiles.php in a text editor. Locate the following line:
    ShowfileList($siteVARrootDir, "", "", "foldersTree", $isFrameless);
Immediately below it, insert the following line:
    echo "foldersTree.iconSrc = \"newroot.gif\"\n";
Where newroot.gif is the name of the icon file you want to use.

Q. Do you have icons for PowerPoint, Quicktime, MS Access files?

A. Here you go:
Make sure to place them in the same directory as the other icons. Also, make sure to add the file extensions for these files to the siteVARshowXtensions variable in the ASP or PHP configuration file that you received with Web File Browser.
Special thanks to Alice Erickson for the MS Access icon.

Q. I am using the frameless PHP browser and the tree does not display. When I debug, I see Notice: Undefined index: frame. What am I doing wrong?

A. This is happening because the URL calling treeOfFiles.php does not have an argument called frame. This is not an error; it is a notice message from PHP. However, this notice is preventing the script from completing. A setting in your Web server’s php.ini file determines how notices are treated. At present, they are preventing scripts from completing. If you don’t have access to this file, you can still configure the server to ignore the notice for this particular script and have the tree render correctly. Search for the following line in your treeOfFiles.php file:
    frame = $_GET['frame'];
and include the following line immediately above it:
    error_reporting(E_ALL ^E_NOTICE);

Q. Clicking on MS Office documents opens the file within Internet Explorer, but not in Firefox. Why not?

A. There are security concerns about letting a Web page control behavior on an end users machine. The Web is designed so that the things a Web page can do are very limited. For the most part, with regards links to documents, a Web page can only make a call to the browser to display the document (and then the browser makes a call to the operating system). Normally, a Web page cannot tell a browser how or where to open that document. Because if it could, then malicuous people could do very bad things.

So how a non-Web format document opens up depends on 1) the end users browser and 2) the end users operating system. You will find that the behavior you are seeing is not even consistent against all instances of IE (because someone may have configured their browser's security settings to behave differently).

Now, I did say for the most part. I said this because it is possible to write a script that has a Web page do certain things with regards opening documents. But this will only work on specific operating systems like Windows. That is, it is not cross-browser or cross-platform.

Unfortunately, consistent behavior across platforms and browsers is impossible when it comes to dealing with other applications on an end user's machine. That's the nature of working on the Web.

Q. Why do I get an intermittent error saying Internal ID is not pointing to a folder anymore. Consider using external IDs.?

A. The tree control on the left-hand side (TreeView) has a configuration variable called PERSERVESTATE (unfortunate misspelling) or PRESERVESTATE. Both spellings of this variable are supported. This configuration variable tells the TreeView to remember its state the next time you load the page. So, in other words, when you go back to the WebFileBrowser page, the TreeView will open the folders that you had open last time. What it basically does is store the IDs of the open folder nodes in a cookie and retrieve the information the next time you load the page. However, if the tree structure changes in the mean time, the folder IDs will change. And then the TreeView will attempt to open an inappropriate folder ID.

This could happen when your folders are changing frequently, which sometimes happens in the development phase of a project. If this happens and you expect your folders to be stable after deployment of your page, then you need not worry about this issue. However, if you expect visible folders to be removed after deployment, then you might want to disable the "preserve state" feature. To do this, open your ASP or PHP file in a text editor (depending on which version you have) and change the value of the PERSERVESTATE (or PRESERVESTATE) variable to 0 (zero):

Q. I have a .thumbnails directory. How do I hide this from my PHP file browser?

A. Open treeOfFiles.php in a text editor. Locate the following code:
    while (list ($key, $val) = each ($subDirs)) {
      echo "$jsParent$childApp = insFld($jsParent, gFld(\"$val\", 'javascript:undefined'))\n";
      ShowFileList($root, "$path/$val", $lstType, "$jsParent$childApp", $isFrameless);
Change the above code to read:
    while (list ($key, $val) = each ($subDirs)) {
      if ($val != ".thumbnails") {
        echo "$jsParent$childApp = insFld($jsParent, gFld(\"$val\", 'javascript:undefined'))\n";
        ShowFileList($root, "$path/$val", $lstType, "$jsParent$childApp", $isFrameless);

Q. I have the ASP file browser, how can I hide the file extensions?

A. Open aspwebfilebrowser.asp in a text editor and locate the following line:

gLnkStr = "gLnk('" & target & "', """ & oFileItem.Name & """, """ & urlStr & "/" & server.URLPathEncode(oFileItem.Name) &""")"

Change it to read:

gLnkStr = "gLnk('" & target & "', """ & Left(oFileItem.Name, InStrRev(oFileItem.Name, ".") - 1) & """, """ & urlStr & "/" & server.URLPathEncode(oFileItem.Name) &""")"

Q. How can I remove the JavaScript Tree Menu link at the top of the tree?

A. We ship Web File Browser with the free (unregistered) version of TreeView. The embedded version of TreeView is fully functional. The only difference between the free version and the registered version is the presence of this link. If you really want to remove this link, you need to purchase the registered version of TreeView from the TreeView Web site.

Q. Why don't you include a registered version of TreeView in Web File Browser?

A. Many customers buy TreeView first and then Web File Browser. If the price for Web File Browser included a registered version of TreeView, then these customers would be paying twice for TreeView. Also, some Web File Browser customers actually want to use the unregistered version of TreeView. So, to accommodate as many customers as possible, we ship Web File Browser with the free (unregistered) version of TreeView.

Q. I work for a company whose legal team requires different licensing terms. Is it possible to obtain alternative licensing terms?

A. Sure. Please contact us and we will try to figure out terms that suit both parties.

Contact Us

If you don't find the answer to your question here, email your question to us at .

Note: We try to answer all emails within three business days. If you send an email and do not receive a reponse, please check your Bulk email folder or your Spam filter to make sure our response is not being filtered out. If you experience issues with the GubuSoft email addresses, feel free to email our backup email address at . Thank you!