Code: Download file from backend in an AJAX manner (Typescript)
User story: The backend sends back a file for you to download, using headers such as “Content-Disposition” and “Content-Type: application/pdf” Upon request, the browser will download the file for me in an AJAX manner, so I can show a progress bar If backend sends an error in JSON format, I want to see the error …
Code: Download file from backend in an AJAX manner (Typescript) Read More »