当前位置:网站首页>File download and upload tool

File download and upload tool

2021-01-23 19:59:44 janbar

Preface

Although there are so many tools to upload and download files now , such as http、ftp、sftp、scp And so on can be used for file transfer , But they all need to install the server or even the client .
There is a scenario where I just need to temporarily upload or download a file , After that, you don't have to run the server , If you use those file transfer tools , It's not just the installation , It's also irritating to turn it on and off .
That's why I want to use gadgets , however Python Fans can use python -m http.server 8080 --bind 192.168.1.100 Turn on the file server , It's still trouble for me .
It has been uploaded to 【Github】, Feel free to appreciate .

Source appreciation

have access to url visit , A suggestion will be displayed web page , It can be here web Page upload and download files , And sorting the files .
You can also use wget or curl Command line tools upload and download files , Multiple choice , There's always a way you want to .
Add secret key option , After use, all the data uploaded, downloaded and transmitted are encrypted , And the secret key is random every time , Yes crc And timestamp verification , Very safe .
When using the encryption option , Unable to get web Show the contents page ( Front end encryption code doesn't want to write ), Can be achieved through the program command line encryption upload and download .
This tool as a client can achieve breakpoint upload or breakpoint download . There are server and client command lines in the prompt , You can refer to .
The help command will be displayed after successful execution , You can copy it, you can change it, you can use it , Very convenient .
2021-01-23 It's been updated , It can be executed .\UpDownFile.exe -reg -s 127.0.0.1:8080 Generated in the same level directory addRightClickRegistry.reg The registry file for .
You can add this program to the right-click menu by double clicking the registry file , From then on, you need to create a temporary file service for a directory , Just right click on the corresponding directory .Linux The command line is comparable to window It's much easier .

And added the upload and download file after the completion of the display file md5 value , This ensures that the transferred file is not corrupted .

Edible method

perform UpDownFile -h You can view the help documentation , perform UpDownFile cli -h You can view the client help document .
No encryption , Can pass web Page to view the directory of the server , You can sort directories , Click on the file to download , Click on the directory to enter .
The tools are small , But it does solve my personal temporary upload and download file needs , You don't have to install servers everywhere anymore , Refreshing .

UpDownFile.exe -s 127.0.0.1:8080 -p C:\dir -e password
dir [C:\dir],url [http://127.0.0.1:8080/]

server:
    UpDownFile.exe -s 127.0.0.1:8080 -p C:\dir -e password
cli get:
    UpDownFile.exe cli -u "http://127.0.0.1:8080/dir/tmp.txt" -c -e password
cli post:
    UpDownFile.exe cli -d @C:\tmp.txt -u "http://127.0.0.1:8080/dir/tmp.txt" -c -e password

GET file:
    wget -c --content-disposition "http://127.0.0.1:8080/dir/tmp.txt"
    curl -C - -OJ "http://127.0.0.1:8080/dir/tmp.txt"
POST file:
    wget -qO - --post-file=C:\tmp.txt "http://127.0.0.1:8080/dir/tmp.txt"
    curl --data-binary @C:\tmp.txt "http://127.0.0.1:8080/dir/tmp.txt"
    curl -F "file=@C:\tmp.txt" "http://127.0.0.1:8080/dir/"

版权声明
本文为[janbar]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/01/20210123195853754E.html

随机推荐