Problem/Motivation
Media items will not save after initial creation
Steps to reproduce
- Create a CF stream media item and save
- Edit the saved item, change the title and save
- " Only files with the following extensions are allowed: mp4 mkv mov avi flv ts tsv tsa mpg mpeg m2p ps mxf lxf gxf 3gp webm qt. "
Proposed resolution
Adjust the extended file field validation to account for a valid CF stream
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork cloudflare_stream-3477122
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fathershawnComment #4
fathershawnComment #5
furamag commentedTested and it works for me.
Comment #6
bmateus commentedAny news on when this is being released? I'm experiencing the same issue.
Comment #7
fathershawnComment #8
ian.ssu commentedI tested the patch with 3.0.0-beta2 and it fixes the issue that blocked saving content with a Cloudflare Video field after the initial upload.
My test case used a Cloudflare Video field in a Block within Layout Builder. Before the patch, creating the block worked, but saving after edits threw the reported error. After applying the patch, I could save changes to the block without errors.
The code looks like a reasonable approach. It removes the file_extensions constraint when the current file is a Cloudflare Stream URI.
Comment #9
tim-dielsSorry for the very late follow up. This looks very good and will include it in the next release.
Comment #11
tim-dielsThanks all for the work done!