I need to implement a project to upload/download file from/to localhost, by Python, from the command line. But the uploaded files need to be viewable from the browser.
Basically i know i need to have a client, a server, and an endpoint(http://localhost). (1)upload: From the client side(command line), i send the file through python request package by http requests. The server side will receive this file and parse this file to get the information in the file. I need to see the uploaded file from the browser. (2)download: from the command line of the client side, i ask for the file through http request. Then the request will be parsed by server. Then the file will be saved locally to my host machine. (3)i know how to use the Python request package.
Question: what do i need to work on the server side and client side? I read through the similar posts for this question, and they are not helpful for my question.