Forum Discussion

Mark L.45's avatar
Mark L.45
Collaborator | Level 9
10 years ago

DropBox swift API unsupported tag error

Using the new SwiftyDropbox V2 API. Working well. But noted an error when I don't think it should be one on the download.

[request-id b192ba37c902b513d81c8fe4c67551d8] API route error - {

    ".tag" = "unsupported_extension";

}

A minor point, it continues anyway... the extension it doesn't like "rtf", which I admit I added to a rich text file cause I needed to parse what sort of file it was and list files API doesn't tell me enough.

The API reporting the error, this one.

 let client = DropboxClientsManager.authorizedClient!

        _ = client.files.download(path:sourcePath)

            .response { response, error in

I there a better way; I noted with the dropbox on my MBP it knows it is a RTF file, with or without the extension? 

1 Reply

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

    Hi Mark, the exception and unsupported_extension error you shared is actually for the files.getThumbnail method, not files.download. It looks like you're accidentally calling getThumbnail. The files.download method works for .rtf files.

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!