Geek Culture
Published in

Geek Culture

How to Delete a File After the Download Is Finished

In one HTTP request

Photo by Agê Barros on Unsplash

As a full-stack web developer, eventually you’ll need to write a REST API endpoint to generate a file to then be sent over the Internet.

For example, think of a report generation with nice charts.

Such a task may take a considerable amount of time to be completed from the end-user’s…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store