Free knowledge blog: linux, programming, open source, databases, android, frameworks, web and computing in general
In this post you will learn how to download a file in the background using client-side JavaScript and the fetch
function to make HTTP requests.
We will see how to download a file as a blob using AJAX and then ask the user where to save it, suggesting a name.
The good thing about this is that we can send parameters to request the download of the file (for example, we can send a password over a POST request if the server requires it).
Today I am going to show you a software that I just made with Laravel. It is a sales system, point of sale, POS or whatever you call it, which is used to keep track of the products that are sold, the sales, and so on.
It is a totally free and open source system; which means that you can use it at no cost, and modify it to your needs or customize it. Among its features we find:
Now let’s see how I have developed it, where you can download it, and so on.