Skip to main content
Implemented

File Size in CDF document API

Related products:REST API
  • February 5, 2024
  • 4 replies
  • 75 views

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.

4 replies

Lars Moastuen
Expert ⭐️⭐️⭐️⭐️
  • Expert ⭐️⭐️⭐️⭐️
  • February 6, 2024

Hi Bruno. 

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

Lars


Que Tran
Practitioner ⭐️⭐️⭐️
Forum|alt.badge.img
  • Practitioner ⭐️⭐️⭐️
  • February 7, 2024

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?

 


Forum|alt.badge.img

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


Elka Sierra
MVP ⭐️⭐️⭐️⭐️⭐️
Forum|alt.badge.img
  • MVP ⭐️⭐️⭐️⭐️⭐️
  • June 12, 2024

Hi,

It appears that the requested feature is already covered. Therefore, I am closing this ticket. If this is not the case, please let us know, and we can reactivate it.

Thank you,
Elka