When you download something, it means that you transfer the file from one location to another. The files are usually stored on your computer or device’s hard drive, but they can also be stored in your device’s internal memory if you want them to. For example, if we open any website, receive emails or messages, purchase any media file from the internet, etc., then we would have downloaded it.

Uploading is a process of sharing or sending some data, files, or documents to any other device or the internet. For example, sending emails, sharing any post on social media, making videos on youtube, etc.

So, what happens when you try to download or upload something?

When someone clicks on a link or button, they are actually downloading a file. The file is usually a program or document, and it will take them to a page where they can choose to install the program or open the document.

OS sends an event to the browser when user clicks on a link.

HTTP Request: https://www.example.com/login?user=123&password=456

Now, the networking stack parses the header and extracts the server address. It then turns the server address into an IP address and constructs several TCP packets. ..

Then the process follows something like this:- 

TCP packets are sent from the computer to the router, then to the local network station, and finally to the network station on the opposite side.

In the case of downloading, the server decrypts the packets and translates those according to some set of rules after getting an HTTP request. Then it finds the necessary file for the request and the user address where it has to be returned, After this, the whole process mentioned above is repeated again but in a recursive manner.

Steps of Downloading: 

The file will get downloaded to the system and the OS normally puts it in the download section. Select or move the file wherever needed

Steps of Uploading: 

Open the portal where it has to be downloaded. Select the folder where the exact file is present. Select the file to upload. Click on upload. ..

When we download something, we are putting it on our computer. When we upload something, we are taking it off our computer.

The internet speed needs to be higher in downloading than in uploading a file. To normal people, downloading or uploading is something just clicking a link and getting the file to their device. However, the actual function behind it is much more critical than we can ever think. But all these happen just within a fraction of a second. ..