collective / wildcard.media

13 stars 12 forks source link

Uploading via fileUpload fails when Wildcard.Video is registered as the video type #32

Open displacedaussie opened 8 years ago

displacedaussie commented 8 years ago

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 the video_file Primary field.

Options