Upload of multiple files doesn't work
Expected behaviour
On the book page for a Word-type chapter-processed book, you can click 'Upload chapters' which opens the upload modal. You can then drag and drop multiple chapters into the book, or choose 'Select files' and choose multiple chapters from your file explorer. Once files are dropped or selected, you click 'Upload' and then the modal closes and you see your files uploading on the book manager page.
Current behaviour
Drag and drop or file selection of multiple chapter files in chapter-processed books isn’t working as expected, the modal closes when you press upload and no uploading is seen on the book page. When you try reupload one file on its own, it works, then when you try upload a second file, it doesn’t work.
Steps to reproduce
I initially found this issue here and encountered it again.
- Create or open a chapter-processed Word-type book
- Add files by drag and drop or file selection
- Click upload
- Notice that only one file appears in the book manager page as uploading, and more files can't be added
The following console error appears each time I try to add more than one file, or when I try add a second file after a first has been added:
Environment
Chrome on Mac Sierra OS.
Priority
Y
QA Steps to test that it's resolved
- In a Word-type chapter-processed book (existing or newly created), drag and drop or select chapters for upload
- Notice that you can upload more than one chapter at a time (e.g. 2 chapters can be selected and when 'Upload' is clicked, they appear on the book manager page)