In our application, the user can upload attachments(images/pdf/excel etc.) but they're allowed to upload like 1GB only. We have new feature where it will show the total size of the uploaded size.If the total size is exceed to 1GB, they need to upgrade their account.
Path
// This is the path of a uploaded files.
public/attachments/11/P-OP/
Question: How to get the total size of a folder?