File Size in CDF document API

Related products: API and SDKs

Subject: Feature Request - File Size detail in  CDF Documents API

We request the inclusion of a File Size within the CDF Documents API. Currently, the absence of this crucial feature impedes our ability to identify file corruption based on size. This limitation compels us to download files for manual checks, causing inefficiencies and resource wastage. Although file size is available in metadata, it reflects the ingested value, not the actual size stored in CDF. The introduction of a dedicated File Size API would enhance efficiency, enable real-time corruption checks, and streamline downstream processes like contextualization. Your prompt attention to this feature request will significantly improve our workflow.

Hi Bruno. 

Thank you for brining this to our attention. We will discuss it internally and consider it for implementation.

Lars


Hi @Harsha ,

I believe the `size` field in Documents API reflects the actual size of the source file in CDF. Is it the `size` under `sourceFile` that you looked at?

 


AFIK, I believe another alternative might be to use a header request for the resulting downloadUrl after fetching it from the Files API.