Hi Saki,
it worked not on the download-command. I try this on your demo page http://filetree.extjs.eu/.
In the Filetree chose a file and then click open/download. After the file is downloaded the iframe is still there...
Bye, Dumbledore
Printable View
Hi Saki,
it worked not on the download-command. I try this on your demo page http://filetree.extjs.eu/.
In the Filetree chose a file and then click open/download. After the file is downloaded the iframe is still there...
Bye, Dumbledore
Hmmm, it looks like browser doesn't fire the load event... No easy solution w/o digging in comes to my mind...
First, let me thank you for your extension. I made a donation and got back filetree.php and it works great.
The behaviour I would like to achieve is to show subtrees only to authorized users.
The subtree varies depending on the user
Root
|--Sub1
|--Sub2
Let say,
User1 can only see Sub1,
User2 can only see Sub2
As the filetree is only seen when connected, I can modifiy 'root' in path and rootPath in filetree.js so they will only see Sub1 (User1) or Sub2 (User2).
But when they double click on the file in order to see the file, then become able to see the complete url.
So User2 could change Sub2 in Sub1 in the url in order to find some files in Sub1 where he is not allow to go.
The properties on the server (LAMP) are set so he cannot list directories.
But he could still guess some commun names to get files normally forbiden for him.
Hi Saki,
I've been looking at this for some time, and I haven't been able to find a way to retrieve a node of the filetree by just having its path. I'm integrating the filetree with a dataview to achieve something similar to a windows-explorer like interface..
I am trying to keep your code untouched to make it easier to update later on and so far that has worked. Concisely, is there a way to retrieve a node by path?
Any help would be greatly appreciated.
Is there any possibility to fix the BrowseButton in Opera? It won't show up the dialog.
Thanks in advance
There have been some improvements of BrowseButton - try to see the BrowseButton's thread.
In case somebody is interested, I solved my original problem (referencing treenodes by filepath) by adding this function to the filetreepanel. Im sure there are easier ways to do so, but this seems to do the trick.
Note that this code will only detect nodes that have been loaded (e.g. it will not find a child node of a folder that has never been expanded.. Despite that, the function is useful if you are integrating the filetree with some other component that requires more advanced interaction.Code:getNodeByPath: function( path, rootNode ){
if( !rootNode ){
return null;
}
if( path[0] == '/' ){
path = path.substring(1);
}
if( this.getPath( rootNode ) == path ){
return rootNode;
}
if( rootNode.childNodes.length > 0 ){
for( childNode in rootNode.childNodes ){
if( typeof( rootNode.childNodes[childNode] ) == 'object' ){
foundNode = this.getNodeByPath( path, rootNode.childNodes[childNode] );
}
if( foundNode != null ){
return foundNode;
}
}
}
return null;
}
,selectNodeByPath: function( path, expand ){
treeNode = this.getNodeByPath( path, this.getRootNode() );
if( treeNode == null ){
return false;
}
treeNode.select();
if( expand ){
treeNode.expand();
}
}
Hi,
I noticed that when a folder is marked as disabled, the upload menu does not render properly in Firefox. Instead of graying out the menu, a big white rectangle appears
Attached is a screenshot comparing IE7, Safari 3.2 and Firefox 3.0.4 (All in Windows)
Terrific job otherwise! :)
How to remove automatically from the Upload panel a file that is correctly uploaded?
(instead of keeping it in the Upload panel with an "Ok" icon)