Do not accept chapter converted files in wholebooks, and do not accept wholebook converted files in chapter processed books
Context
If a user uploads a chapter-processed converted file to a wholebook, the status of the file goes to Loading preview but the book status doesn't change. The statuses are therefore not correct but moreover this file can't be processed because it's the wrong file type. We should prevent uploading the wrong file in the first place.
Likewise if a user uploads a wholebook converted file to a chapter-processed book, the status of the file goes to Loading preview but the book status doesn't change. The statuses are therefore not correct but moreover this file can't be processed because it's the wrong file type. We should prevent uploading the wrong file in the first place.
Proposal
For wholebooks:
If the user uploads a converted file with <!DOCTYPE book-part-wrapper
(which indicates that it's a chapter processed file), remove the file from the system, leave the book status as it was, and give an error message on the page 'Incorrect file uploaded. Chapter-processed files are not allowed in wholebook processed books.'
For a chapter-processed book:
If the user uploads a converted file with <!DOCTYPE book
(which indicates that it's a wholebook processed file), remove the file from the system, leave the book status as it was, and give an error message on the page 'Incorrect file uploaded. Wholebook processed files are not allowed in Chapter-processed books.'
Design
Implementation (if applicable)
Alternative approaches (if applicable)
Scheduling
-
This feature is required for Priority 1: Deploy MVP -
This feature is required for Priority 2: Deploy Fully Production-Ready BCMS with All content migrated, some power users onboarded