Video Upload does not work
Closed this issue · 1 comments
tdxdave commented
Video upload to interactive video returns an error. The UI says the file is too large, but that is a generic message for all file upload errors. There isn't any server side file size checking.
Error is in saveFile function in h5pdefaultstorage.py
I'll see if I can fix this.
Simple fix would be to use correct python file handling. Best fix would use Django file object.
Request Method: | POST |
---|---|
http://localhost:8000/h5p/editorajax/0/?files | |
1.10.3 | |
TypeError | |
write() argument must be str, not bytes | |
/Users/dave/.pyenv/versions/src/h5pp/h5pp/h5p/library/h5pdefaultstorage.py in saveFile, line 303 | |
/Users/dave/.pyenv/versions/bin/python | |
3.5.1 | |
['/Users/dave/Projects/courses', '/Users/dave/.pyenv/versions/src/h5pp', '/Users/dave/.pyenv/versions/3.5.1/lib/python35.zip', '/Users/dave/.pyenv/versions/3.5.1/lib/python3.5', '/Users/dave/.pyenv/versions/3.5.1/lib/python3.5/plat-darwin', '/Users/dave/.pyenv/versions/3.5.1/lib/python3.5/lib-dynload', '/Users/dave/.pyenv/versions/lib/python3.5/site-packages'] | |
Mon, 15 Oct 2018 20:16:08 +0000 |
ptitloup commented
Fix with PR#19