This article documents the usage of the Cpanel::Fileman::getdiskinfo function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Fileman::getdiskinfo
This funciton outputs the amount of disk space remaining for uploads on an account.
- NONE
- file_upload_remain
-
Space remaining for uploads (in Bytes, file_upload_must_leave_bytes less than spaceremain).
- file_upload_must_leave_bytes
-
Space that must be left after uploading (in Bytes,to prevent disk quota issues).
- file_upload_max_bytes
-
Maximum file size for upload (in Bytes).
- spaceused (integer)
-
Space used by user (in Bytes).
- spacelimit (integer)
-
User's disk space usage limit (in Bytes).
- spaceremain (integer)
-
Space left towards the user's disk space usage limit (in Bytes).
- _humansize
-
Adding _humansize to any output variable will output it in MB.
<?cp Fileman::getdiskinfo(%,file_upload_remain_humansize) ?>
Copyright 2007 cPanel Inc.