Forum Discussion

mansi2821's avatar
mansi2821
Explorer | Level 4
4 years ago

paper document download unspported error

hy 

 

i have paper doc in my dropbox account and when i try to download those documents using dropboxClient.Files.DownloadAsync()

i am facing error 

 

System.AggregateException: One or more errors occurred. ---> Dropbox.Api.ApiException`1[Dropbox.Api.Files.DownloadError]: unsupported_file/..
at Dropbox.Api.DropboxRequestHandler.<Dropbox-Api-Stone-ITransport-SendDownloadRequestAsync>d__15`3.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at InfinniumDropBoxConsumer.Business.InfinniumDropBoxConsumer.DownloadFile(DocumentDetailFromConnector documentDetail, Boolean dataInsight, DateTime modifiedDate, Int32 retry)
---> (Inner Exception #0) Dropbox.Api.ApiException`1[Dropbox.Api.Files.DownloadError]: unsupported_file/..
at Dropbox.Api.DropboxRequestHandler.<Dropbox-Api-Stone-ITransport-SendDownloadRequestAsync>d__15`3.MoveNext(); Request Id: eda9da2f079140abbcf8c81f907debd9<---

 

is there a way i can download these documents 

6 Replies

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

    As discussed in the other thread, for non-downloadable files like this, you should use the "export" functionality instead. In the .NET SDK, that's available as ExportAsync.

  • mansi2821's avatar
    mansi2821
    Explorer | Level 4
    4 years ago

    can i also export google imported files with same method

  • mansi2821's avatar
    mansi2821
    Explorer | Level 4
    4 years ago

     

    1. how can i download comments of the paper document when i download html it does not give me comments 

     

    2. can i get some zip file or something where i can get all the images and attached documents of that paper document 

    if not how can i get images and other attachments from this html or paper file

     

    and also there is this endpoint available 

    https://api.dropboxapi.com/2/paper/docs/download

     so can't you download paper docs with this endpoint

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

    Yes, you would use the export functionality to download any items with files with exportInfo.exportAs set, such as Google docs.

     

    The Dropbox API unfortunately doesn't offer the ability to list or read comments on Dropbox Paper docs, but I'll pass this along as a feature request.

     

    There isn't a separate call for downloading images/attachments. Anything in the Paper doc will be included in the exported data itself.

     

    The /2/paper/docs/download endpoint is an endpoint for downloading legacy Paper docs, that is, Paper docs that are not in the Dropbox filesystem. You can find more information here. For .paper files in the filesystem, you should use the export functionality as discussed above.

  • mansi2821's avatar
    mansi2821
    Explorer | Level 4
    4 years ago

    currently i am exporting file how can i get exported data that includes images 

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

    Images are included in the exported HTML, via an <img> element.

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!