The new version supports permissions and qouta's on subfolders. I would like a directory structure like this:
RootFolder
UploadFolder
DownloadFolder
How do I set the permissions on the sub folders so that one on shows the upload arrow and the other only shows the download arrow.
I also need different qoutas.
Thanks.
Tom Riggin
11/27/2008 11:27 AM
You should use AddSubfolder method of FileVistaRootFolder class for this purpose.
For instance, you can set Upload permissions, 1000 KB quota and allow *.jpg files on subfolder "UploadFolder" like this:
rootFolder.AddSubfolder("UploadFolder", FileVistaPermissions.Upload, false, 1000, FileVistaQuotaUnit.KB, "*.jpg");
You can also set the access control for subfolders at any depth. Here is an example for setting ReadOnly permissions, unlimited quota and allow any files on subfolder "SubFolder1/SubFolder2".
rootFolder.AddSubfolder("SubFolder1/SubFolder2", FileVistaPermissions.ReadOnly, true, 0, FileVistaQuotaUnit.KB, string.Empty);
Cem Alacayir
11/27/2008 7:06 PM
What is the namespace for the AddSubFolder method of the rootFolder object?
andy
12/14/2008 10:51 PM
The FileVistaRootFolder class is in the GleamTech.Web.Controls namespace.
Cem Alacayir
12/15/2008 9:55 PM