Would it be possible to return the fields datetime_stored
or datetime_uploaded
in the fileInfo response?
I am hoping to allow my custom tab’s media library to sort by date uploaded.
best,
Owen
Would it be possible to return the fields datetime_stored
or datetime_uploaded
in the fileInfo response?
I am hoping to allow my custom tab’s media library to sort by date uploaded.
best,
Owen
Hi @owenhoskins,
The fileInfo object provided by JS API of the widget or by Upload API doesn’t contain the datetime_uploaded
key. It can be obtained by performing an additional request to REST API
Can you tell us a bit about your implementation of the media library?
Thanks for your reply @Alex.
I realize I can get that info from the Rest API but I need to make these calls from the browser and therefor would expose my private key – unless I am missing something?
I am continuing work on the abandoned https://github.com/uploadcare/netlify-cms#uploadcare-media-library
because I need to provide a stop-gap solution for a client project until your widget comes with a Media Library built-in.
Thanks.
best,
O