Skip to content

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

@gringopachingo

Description

@gringopachingo

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions