python上传zip文件
具体实现代码如下:
def upload_zip_file(file_absolute_path):
file_name = os.path.split(file_absolute_path)[-1]
upload_bug_file = (file_name, open(file, 'rb'), 'application/zip')
m = MultipartEncoder(
fields={'file_name': file_name, 'file_path': upl
原创
2021-11-09 13:05:11 ·
2500 阅读 ·
0 评论