torchbox / wagtailmedia

A Wagtail module for managing video and audio files within the admin
https://pypi.org/project/wagtailmedia/
BSD 3-Clause "New" or "Revised" License
224 stars 70 forks source link

When publishing the page, MediaBlock does not report an error when it does not fill in anything #206

Closed tangwenhao closed 1 year ago

tangwenhao commented 1 year ago

When publishing the page, select MediaBlock to upload the video. In the upload video tab, select nothing, click the upload button directly, and the code will jump out directly, and it cannot be friendly to prompt that no content has been entered.

zerolab commented 1 year ago

Thank you for the report. I'd appreciate a short screen recording of this happening, ideally with the browser developer console open to see whether there are any JS errors

tangwenhao commented 1 year ago

Thank you for the report. I'd appreciate a short screen recording of this happening, ideally with the browser developer console open to see whether there are any JS errors

pic1

pic2

zerolab commented 1 year ago

Sorry for the delay in responding to this. I seems this may be an issue coming from Wagtail itself: https://github.com/wagtail/wagtail/issues/10498

zerolab commented 1 year ago

This was fixed in Wagtail 5.0.2