Hi,
I am using the Dropbox SDK for Java. I understand that the the get_preview will return either html or pdf based on the file type. Is there a rule that specifies what is the preview content type for each file type? And is that rule likely to change? E.g xls preview is html now, but next week may be pdf?
And is there a way to check what the preview mime type is after we get it from Dropbox? Maybe it is in the response header, but how do I access this form the SDK?
The only way to check the preview type now is to consume the content stream convert to string and check if starts with HTML tag.
Is there a better way?