How to Download A File using JavaScript Client

Is there a complete example of how to download a file using the JavaScript Nuxeo Client? I have tried coding this and need some help.

Attached is a function from a React application which uses Electron.

The code to display the file using PDF works OK.

The code to download non-PDF files is failing. I would appreciate some help to make this work.

Thank you. Sincerely, Victor Reinhart UnitedHealth Group

0 votes

2 answers

835 views

ANSWER



Hi Gregory, Thank you for your reply.

I visited that link. It says: “Goal Upload a file to your Nuxeo Platform instance, create a contract and attach the file to the contract.”

This has nothing to do with my question. This is about uploading a file.

Is there a complete example of how to download a file using the JavaScript Nuxeo Client?

I searched the examples and didn't find anything helpful.

Thank you. Sincerely, Victor Reinhart UnitedHealth Group

0 votes



Hello,

The Getting Started section of the Documentation website contain a full tutorial using the Javascript client.

https://doc.nuxeo.com/nxdoc/managing-files/

Regards

0 votes