1
todd7zhang 2019 年 12 月 26 日
只要你的 FileStorage 有 read 的实现,那就直接传就行了
requests.post(url, files={'f_name': open('tmp.file', 'r')}) requests.post(url, files={'f_name': file_storage_instance}) |