|
@@ -17,7 +17,7 @@ async def upload_image(url, payload, filename1, content1, filename2, content2):
|
|
|
|
|
|
# 添加文件数据
|
|
|
form_data.add_field('file', content1, filename=filename1, content_type='image/jpeg')
|
|
|
- form_data.add_field('oldFile', content2, filename=filename2, content_type='image/jpeg')
|
|
|
+ # form_data.add_field('oldFile', content2, filename=filename2, content_type='image/jpeg')
|
|
|
|
|
|
# 发起 POST 请求
|
|
|
async with aiohttp.ClientSession() as session:
|