How to create, download, and upload files in React apps
As we've previously announced, we're working on a new tool, the forthcoming API Request Builder, that can generate DocuSign eSignature REST SDK programs for C#, Java, Node.js, PHP, Python, and Ruby from a JSON source.
The API Request Builder application uses the React framework. Except for a very small server program that helps with loading files via URLs, and the DocuSign eSignature platform itself, the application runs entirely within the browser.
To save data from the application to the user’s desktop, the application creates and then downloads files to the user. The files are created and downloaded from within the React application; the server is not used.
In the same way, when a user “uploads” a document to the application, it isn’t uploaded to the server. Instead, the upload is to the application running within the browser.