-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to upload image handouts #254
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #254 +/- ##
==========================================
+ Coverage 85.08% 85.15% +0.06%
==========================================
Files 41 41
Lines 2548 2560 +12
Branches 26 26
==========================================
+ Hits 2168 2180 +12
Misses 379 379
Partials 1 1
Continue to review full report at Codecov.
|
@@ -240,11 +240,14 @@ function createTranscriptBlock(langCode, langLabel, transcriptsValue, downloadTr | |||
*/ | |||
function clickUploader(event, $fileUploader) { | |||
'use strict'; | |||
var handoutsAllowedFileTypes = '.png, .jpeg, .jpg, .gif, .tiff'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check what types stock open edx video xmodule supports.
I'm certain this list should include .pdf
, and maybe some more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cover it with unit tests and it's good to go!
* Add ability to upload image handouts * Extend handouts allowed file types list * Refactor uploading file extension check, cover it with unittests
Small fix to allow uploading images as handouts. Size limit is still 300Kb.