Book component filename validation not shown when uploading converted file in status "new version"
Expected behaviour
The user should be able to upload a source or converted file to a new book component version and have the filename checked, with an error shown if it doesn't match.
We've finalised the file validations in the wiki here (but that was confirmed after the the development of uploading converted files). We shouldn't show doc
or docx
in the validation message since we validate with the file extension.
Current behaviour
The correct error is shown when uploading a source file (that should not be uploaded):
But the error message is incomplete when uploading a converted file (that should not be uploaded):
Steps to reproduce
You can try this here
- In a book that support multiple published version, publish V1 and create a new version
- Upload any file that has a different filename to the source/converted in V1