我们运行一个web服务,在过去,我们允许ftp文件上传到我们的客户。
将来,我们希望从ftp切换到http/https。
当前通过ftp上传数据的ms-windows管理员看不到使用http的方法。
我也不知道,因为15年来我不再使用ms-windows了。
有一个简单的工具,为ms-windows,可以做文件上传通过http?
所需特征:
可选功能:
发布于 2017-10-12 15:32:23
由于找不到匹配的工具,我自己写了一个:
https://github.com/guettli/tbzuploader
通用http上传工具。
如果http上传成功,文件将被移动到“完成”子目录。
如果服务器以http状态201创建应答,则tbzuploader认为上载是成功的。
附加功能:处理对文件。
例如,您有四个文件: a.pdf、a.xml、b.pdf、b.xml
第一次上传应该使用a.pdf和a.xml,第二次上传b.pdf和b.xml,然后读取--patterns的文档。
Usage::
usage: tbzuploader [-h] [--patterns= LIST_OF_PATTERNS]
[--min-age-seconds MIN_AGE_SECONDS]
[--done-directory DONE_DIRECTORY]
[--no-ssl-cert-verification]
local_directory url
positional arguments:
local_directory
url
optional arguments:
-h, --help show this help message and exit
--patterns= LIST_OF_PATTERNS
List of file endings which should get uploaded
together. Example: --patterns="*.pdf *.xml" The pairs
(a.pdf, a.xml) and (b.pdf, b.xml) get uploaded
together
--min-age-seconds MIN_AGE_SECONDS
Skip files which are too young. Default: 60
--done-directory DONE_DIRECTORY
files get moved to this directory after successful
upload. Defaults to {local_directory}/done
--no-ssl-cert-verification从pypi的tbzuploader安装以供使用
pip install tbzuploaderhttps://softwarerecs.stackexchange.com/questions/45539
复制相似问题