Relative Content

Tag Archive for javascriptreactjsnode.js

React bundle size increased by more than the file that it included

require(`./path/to/large_file`) Without this file being required, the React app build bundle resulted in 36 MB. With this file included, it resulted in 80 MB. However, the size of the file itself, ./path/to/large_file, is only 21 MB, via this linux command: du -sh ./path/to/large_file 21 + 36 = 57 80 – 57 = 23 Can someone […]

Download uploaded pdf file fails to render the first time

I am trying to make the user download the pdf file that he has submitted on the form, the first time i click download, it downloads the pdf file but when i open it , it gives me Failed -network error on the file being downloaded, if i resave anything in the file while staying on the form, it downloads the file but when i open it , it gives me unable to load PDF file, then i resave again, and it downloads the pdf file and i actually open it. im not sure if this is related to how the action is updating the attachmentUrl,