Forum Discussion

trithanhnguyen's avatar
trithanhnguyen
Helpful | Level 6
4 years ago
Solved

How to get the file type of a file in Dropbox account.

I need to get the detail information of a file in the Dropbox account.  There are 2 fields I could not find in the file metadata are:

- File version number.

- File type.

 

For the file version, I can have the revision number on that filed, even though it is kind of strange because it a string of letters not a string of numbers. But for a file type (as MIME types), I could not find that information. Can I get that information for Dropbox Java SDK?

 

Thanks.

 

  • The Dropbox API does not offer an integer version number. It offers the "rev" value, which can be used to detect changes, but is not a monotonically increasing integer. Check out the Detecting Changes Guide if you're interested in how to use the Dropbox API to monitor changes to files/folders.

     

    The Dropbox API also doesn't offer mime types for files, but you can get the file extension from the file name and keep your own file extension to mime type mapping as desired.

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    The Dropbox API does not offer an integer version number. It offers the "rev" value, which can be used to detect changes, but is not a monotonically increasing integer. Check out the Detecting Changes Guide if you're interested in how to use the Dropbox API to monitor changes to files/folders.

     

    The Dropbox API also doesn't offer mime types for files, but you can get the file extension from the file name and keep your own file extension to mime type mapping as desired.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If 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, Facebook or Instagram.

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!