You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
f21a0b091d4c42dc9775f3d4eb
2 years agoNew member | Level 2
How can I get the "Date Created" attribute from a file using the python SDK?
Using the Dropbox for Python SDK, I can see the date that the file was last modified in dropbox using the client_modified attribute,
However when I view the "Info" tab in the dropbox web UI, i can see that there is "Date created", "Date taken", and "Date uploaded" times, which I want to use to organize my photos.
Is there any way to get any of these values using the Dropbox for Python SDK?
- Greg-DBDropbox Staff
The Dropbox API/SDK doesn't return file creation dates (only modified dates), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
The "Date created", "Date taken", and "Date uploaded" values you're referring to are from metadata embedded in image, such as using Exif. Some but not all image files contain embedded image metadata like that. The Dropbox API automatically exposes some of this information, such as
dimensions
andtime_taken
, where available, via the /2/files/get_metadata endpoint, which is files_get_metadata in the Python SDK. This unfortunately doesn't include the full EXIF data though. You can find all of the metadata offered in the documentation, by expanding the relevant fields, such as by clicking onFileMetadata
,MediaMetadata
,PhotoMetadata
andVideoMetadata
. To retrieve any other embedded image metadata not offered there, you'd need to download the image file and extract the image metadata in your code to access those fields.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,902 PostsLatest Activity: 3 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!