When fetching folders and their contents through the Cloud Page API, the response should always include the size of each component (files and folders).
This allows the frontend in the core Vault Web repository to properly display storage usage for the user:
https://github.com/Vault-Web/vault-web
The size information will be used to:
- Show file sizes in the file explorer UI
- Calculate and display total storage usage for the user’s cloud storage
- Enable a clear and consistent visualization of storage consumption in the frontend
Folder sizes should represent the aggregated size of their contained files, enabling accurate usage display and storage monitoring.