cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DropBox swift API unsupported tag error

DropBox swift API unsupported tag error

Mark L.45
Collaborator | Level 8

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 1

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?