1
Upload file that exceed quota limit
Problem reported by Adriano Catapano - 8/29/2022 at 3:00 AM
Resolved
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. 

5 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);
0
Adriano Catapano Replied
With FileUltimate v8.5.1 the problem still exists
0
Adriano Catapano Replied
With FileUltimate v8.7 the problem still exists 
0
Cem Alacayir Replied
Employee Post Marked As Resolution
Hi,
This is now fixed with the latest version:

Version 8.7.5 - April 7, 2023

  • Fixed: In some cases, root folder quota was not respected, and chunks continued to be uploaded.
    A file that exceeds quota, will be rejected as expected.

Reply to Thread