Issue Details (XML | Word | Printable)

Key: MDL-17124
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Mathieu Petit-Clair
Reporter: Amr Hourani
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

HTML Editor Doesnt support BMP images

Created: 04/Nov/08 08:30 PM   Updated: 04/Nov/08 08:30 PM
Component/s: HTML Editor
Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3
Fix Version/s: None

File Attachments: 1. File coursefiles.php (33 kB)

Environment: ALL

Participants: Amr Hourani and Mathieu Petit-Clair
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
whenever moodle users try to insert a bmp image, They get the following error: "Selected file is not an image. Please select an image!"

FIX:

in lib/editor/htmlarea/coursefiles.php on line 64, add the following:

&& params.itype.indexOf("image/bmp") == -1

i.e: change

if(params.itype.indexOf("image/gif") == -1 && params.itype.indexOf("image/jpeg") == -1 && params.itype.indexOf("image/png") == -1) {

to

if(params.itype.indexOf("image/gif") == -1 && params.itype.indexOf("image/jpeg") == -1 && params.itype.indexOf("image/png") == -1 && params.itype.indexOf("image/bmp") == -1) {

cheers!

Amr Hourani



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.