Open
Description
Summary:
Several students and I encountered an error when trying to upload media files:
On Chrome:
There was an error saving the file: SyntaxError: Unexpected token '<', is not valid JSON
On Firefox and Safari:
There was an error saving the file: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
I tried adding a test chunk of JSON to the custom JSON section, which is then flagged as the error when I go to debug. Leaving the custom JSON section completely blank still raises the same error.
To reproduce:
- Log in and open any book
- Upload media through either the Content section of the book Dashboard or through the Upload button in the page editor
- Add title, description for media and select file
- Click Upload
Expected result:
A selected media file with a specified title and description being added to the Content of the book. A green "succesfully uploaded" banner appearing at the bottom of the screen.
Metadata
Metadata
Assignees
Labels
No labels