How to create, download, and upload files in React apps
No server needed! Generate and download data from browser-based applications.
Table of contents
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.
To see how to implement these JavaScript techniques, check out my new article How to Create, Download, and Upload Files in React Apps published by the JavaScript in Plain English Medium channel.
Additional resources
Larry Kluger has over 40 years of tech industry experience as a software developer, developer advocate, entrepreneur, and product manager. An award-winning speaker prominent StackOverflow contributor, he enjoys giving talks and helping the ISV and developer communities.
Twitter: @larrykluger
LinkedIn: https://www.linkedin.com/in/larrykluger/
Related posts