question

admin2275 avatar image
admin2275 asked

Please include file size in children list node

I would like to build a hierarchical file browser - and the List Children method works fine for this, except I cant get file size of a file without querying them again which takes extra time and puts extra load on your servers. And I cant use filters either it seems, as I can't mix files and folders in non-children query plus there is no way to indicate the parent folder I want to list files/folders for when not using the List Children method. TLDR: Please add size parameter to children metadata in List Children API method.
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tejwant Singh avatar image
Tejwant Singh answered
Size is already there in listChildren response. You have to look for this under contentProperties field.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

admin2275 avatar image
admin2275 answered
Great, my bad. :-)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.