Chrabasz60572

React download file without new window

There can be cases, especially in Single Page Applications, when you have some data in the Without that Chrome just saved the file calling it 'download.csv'. 17 Oct 2018 Let's create the file src/components/PDFViewer/PDFViewer.js and start by export default class PDFTron { init = (source, element) => { new window. from one viewer to another without having to touch our components. 31 May 2016 It is possible to programmatically open a file dialog in JavaScript, but only from within