How to Implement quota Management
-
Hi All How are you. I have a problem. I want to implement “Quota Management” in my application. Quota Management in the sense, Suppose you login to yahoo or gmail or any other mail id, then in the welcome screen you can see a progress bar which is showing you are using 100MB of your 1 GB limit. I want to do the same. Do you have any idea about that. Let me give you a brief idea what I am trying to do. I am creating a new folder for every new user registered. So if I can give a maximum size limit to that folder and at the time of login if I can check the total used space and the maximum size of the folder then the problem may be over. I don’t know if it will work or not. But I guess it will work. Can anybody help me in this. Please please pleaseeee its very urgent.
Sagar Pattnayak Software Developer Sun-Dew Solutions +91-9831169962
-
Hi All How are you. I have a problem. I want to implement “Quota Management” in my application. Quota Management in the sense, Suppose you login to yahoo or gmail or any other mail id, then in the welcome screen you can see a progress bar which is showing you are using 100MB of your 1 GB limit. I want to do the same. Do you have any idea about that. Let me give you a brief idea what I am trying to do. I am creating a new folder for every new user registered. So if I can give a maximum size limit to that folder and at the time of login if I can check the total used space and the maximum size of the folder then the problem may be over. I don’t know if it will work or not. But I guess it will work. Can anybody help me in this. Please please pleaseeee its very urgent.
Sagar Pattnayak Software Developer Sun-Dew Solutions +91-9831169962
You'd do better to track traffic in your database, than fill your server with copies of files.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hi All How are you. I have a problem. I want to implement “Quota Management” in my application. Quota Management in the sense, Suppose you login to yahoo or gmail or any other mail id, then in the welcome screen you can see a progress bar which is showing you are using 100MB of your 1 GB limit. I want to do the same. Do you have any idea about that. Let me give you a brief idea what I am trying to do. I am creating a new folder for every new user registered. So if I can give a maximum size limit to that folder and at the time of login if I can check the total used space and the maximum size of the folder then the problem may be over. I don’t know if it will work or not. But I guess it will work. Can anybody help me in this. Please please pleaseeee its very urgent.
Sagar Pattnayak Software Developer Sun-Dew Solutions +91-9831169962
SKP24 wrote:
Suppose you login to yahoo or gmail or any other mail id, then in the welcome screen you can see a progress bar which is showing you are using 100MB of your 1 GB limit
Mail system won't predefine each folder size. How this works is, whenever a new file is added, it will make sure that totally used space is in between the allowed size. Whatever method you are doing is good. But don't assign any quota for the folder first time. Whenever that folder gets data count the space and make sure that it is in allowed space. As christian said, you can track this in DB too rather than in file system
-
SKP24 wrote:
Suppose you login to yahoo or gmail or any other mail id, then in the welcome screen you can see a progress bar which is showing you are using 100MB of your 1 GB limit
Mail system won't predefine each folder size. How this works is, whenever a new file is added, it will make sure that totally used space is in between the allowed size. Whatever method you are doing is good. But don't assign any quota for the folder first time. Whenever that folder gets data count the space and make sure that it is in allowed space. As christian said, you can track this in DB too rather than in file system