vimeo / vimeo.py

Official Python library for the Vimeo API.
https://developer.vimeo.com
Apache License 2.0
210 stars 84 forks source link

Filename is set to "Unknown file name" when using v.upload() #174

Open gringopachingo opened 3 years ago

gringopachingo commented 3 years ago

When looking at the uploaded versions via the API or website, the filename is "Unknown file name", while the description and name are set correctly. I have tried the following both with and without 'file_name'.

video = v.upload(
    "video_upload.mp4", 
    data={
        'name': "New Title of Video", 
        'description': "This is the description", 
        'file_name': "video_upload.mp4"
    }
)

For a couple of months, I was able to PATCH an updated version filename, but that does not appear to work anymore.

v.patch(
    '/videos/{video_id}/versions/{version_id}, 
    data={
        'file_name': "video_upload.mp4",
    }
)

I can set the file_name for subsequent versions, just not the original upload. Is this a limit of the API or the library (or my understanding of either)?