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
sanjeev_hansanur
3 years agoExplorer | Level 4
Exception in 2/files/download: "unsupported_file"
We are trying read content of paper file, getting below exception
com.dropbox.core.v2.files.DownloadErrorException: Exception in 2/files/download: "unsupported_file"
at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:1278)
at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:1297)
at com.amazonaws.kendra.connector.dropbox.model.item.PocInputStreamToString.main(PocInputStreamToString.java:36)
Below is code we are using
DbxDownloader dbxDownloader= client.files().download("/First Paper.paper");
// Metadata metadata=client.files().getMetadata("/document.docx");
InputStream inputStream= dbxDownloader.getInputStream();
DataInputStream dataInputStream = new DataInputStream(inputStream);
String tmp;
StringBuilder inputLine=new StringBuilder();
while ((tmp = dataInputStream.readLine()) != null) {
inputLine.append(tmp);
//System.out.println(tmp);
}
System.out.println("File content--->"+inputLine.toString());
- Greg-DBDropbox Staff
The "unsupported_file" error means:
This file type cannot be downloaded directly; use
DbxUserFilesRequests.export(String)
instead.You can find more information in the documentation linked there.
- sanjeev_hansanurExplorer | Level 4
Similarly we are facing issue for docx,paperT and shortCut
- mansi2821Explorer | Level 4
is there any updates i am facing the same issue
- ЗдравкоLegendary | Level 20
mansi2821 wrote:is there any updates i am facing the same issue
Hi mansi2821,
What you mean "the same issue"? 🤔 Have you meet some file you can neither export nor download? What is this file type, if any, and what you are seeing on the corresponding metadata (is the file marked as downloadable there)? 🧐
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 8 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!