Classic file types are no longer available for use as of January 2021. You can transition your classic files or download a PDF. Learn More

Upload a single file with Python

1

Comments

1 comment

  • Benji4

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

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

    1

Please sign in to leave a comment.