1
Upload file that exceed quota limit
Problem reported by Adriano Catapano - 8/29/2022 at 3:00 AM
Being Fixed
If I apply a quota limit to a root folder and try to upload a file that exceeds the quota limit and also the chunk size, no warning over quota is returned and loaded chunks appear in the folder. 

2 Replies

Reply to Thread
0
Cem Alacayir Replied
Employee Post
Can I see how you set Quota and Path properties for FileManagerAccessControl?
0
Adriano Catapano Replied
Of course

FileManagerRootFolder root = new FileManagerRootFolder();
root.Name = "<name>";

root.Location = 
    "Path={<physical path>}; " +
    "User Name={<username>}; " +
    "Password={<password>}";

FileManagerAccessControl access = new FileManagerAccessControl();

access.Path = "\\";
access.Quota = new GleamTech.FileUltimate.AspNet.UI.ByteSizeValue(62914560); // 60MB
access.AllowedPermissions = FileManagerPermissions.Full;

root.AccessControls.Add(access);

fileManager.RootFolders.Add(root);

Reply to Thread