自 2021 年 1 月起,经典文件类型不再可用。您可以转换经典文件或下载 PDF 文件。了解更多

Upload a single file with Python

1

评论

1 条评论

  • Benji4

    The issue is easily resolved by specifying the MIME-type of the file:

    files = {
        'file': (file_name, file_to_upload, 'text/csv')
    }

    1

请先登录再写评论。