-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversion type extension issue #31
Comments
Quick update on this we looked at getting that fixed in core but apparently it's up to each plugin to address (https://tracker.moodle.org/browse/MDL-69616) I think it'll also explains #41 as a lot of phones save image filetypes in capitals - that's how we came across it |
This can be fixed here https://github.com/catalyst/moodle-fileconverter_librelambda/blob/master/classes/converter.php#L424 including the strtolower function:
|
Hi all, I am closing this issue as it is fixed on: #72 |
Hi Matt,
I have just come across potential issues involving extension type names. If a file has a uppercase extension (which sometimes occur with image files) this will fail as an unrecognised format because the list of supported import file formats are in lowercase.
I tested this by changing a file extension (xxx.png) to uppercase and then back to lowercase.
So, would it be worth while to implement a strtolower() somewhere to capture the filename extension before it's checked against the supported list?
What are your thoughts on this?
Regards
David
The text was updated successfully, but these errors were encountered: