You need to write a file server in django.
!!! read everything carefully !!!
1. Upload file. a link to upload the file is required after uploading the file you need
sum sha256 and give this file the name of this sum. if a file with this
name already exists, then do nothing as if the file is uploaded. otherwise
the original filename and its sha256 sum should be stored in the database. all
uploaded files are stored in one folder. The "tag" in the upload link should be saved to
field in the database.
the following command should work something like this (not tested on other servers):
curl --request POST --data-binary "@ [login to view URL]" http: // url / tag / upload
2. Download the file. The file can be downloaded from the generated link as many times
how much is drawn in the database, after the link becomes invalid. If the file is not
was transmitted one hundred percent, then the link remains valid or the counter
downloads are not reduced. otherwise, after one download, the counter decreases by
one. the file must be transferred in chunks so that in the future it can be limited
download speed. the following command should work something like this:
curl http: //url/crypted_generated_link/[login to view URL] --output [login to view URL]
forgot to add a link generator. is only needed
to check the functionality and looks like this: http: // url / getlink / <filehash> / <max_count_download> /
6 pekerja bebas membida secara purata €33 untuk pekerjaan ini