So i'm trying to upload a mp4 file for the review.
That's what i'm doing:
file_path = r"d:\FtrackPlayground\ftrackreview-mp4.mp4"
assetParent = Shot['parent']
asset_type = session.query('AssetType where name is "Animation"').one()
asset = session.create('Asset', {
'name': 'MY_NAME',
'type': asset_type,
'parent': assetParent
})
asset_version = session.create('AssetVersion', {
'asset': asset,
'task': Shot,
})
session.commit()
asset_version.create_component(FilePath)
session.close()
I've got this from the documentation page: https://ftrack-python-api.rtd.ftrack.com/en/stable/example/publishing.html
the problem is that the file won't upload. I have an empty preview thumbnail.
Could somebody help?