The Wildcard.Video dexterity type can be set in the Content Type Registry as the registered type for video files. If this is done, adding a Video via the fileUpload facility in folder_contents will create a wildcard.video object. Unfortunately, fileUpload and the dexterity factories don't look up the primary field properly. Instead, they attempt to set the video on the file attribute instead of trying to find the video_file Primary field.
Options
Fix dexterity so that it does less guessing of what type of file to create/what attribute to set
Add a workaround to wildcard.media so that the video_file is set properly if DX sets it via the file attribute
User problem
The Wildcard.Video dexterity type can be set in the Content Type Registry as the registered type for video files. If this is done, adding a Video via the fileUpload facility in folder_contents will create a wildcard.video object. Unfortunately, fileUpload and the dexterity factories don't look up the primary field properly. Instead, they attempt to set the video on the
file
attribute instead of trying to find thevideo_file
Primary field.Options
video_file
is set properly if DX sets it via thefile
attribute