Do you expect the above to work for all modules as well or do I still have to make changes in them as well?
Basby
I am however not able to upload html files.
if (in_array($this->mediaType, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png'))) {
if (isset($this->maxWidth) || isset($this->maxHeight)) {
if (false === ($this->mediaDimention = getimagesize($this->mediaTmpName))) {
$this->setErrors('Alert: This File is not an Image');
return false;
}
}
return true;
}
}
if (in_array($this->mediaType, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png'))) {
if (isset($this->maxWidth) || isset($this->maxHeight)) {
if (false === ($this->mediaDimention = getimagesize($this->mediaTmpName))) {
$this->setErrors('Alert: This File is not an Image');
return false;
}
}
return true;
}
//BASBY: added
return true;
}
New problem: I can upload an image and select it. The image is however not displayed. A square with a red cross is shown.
It appears that the access rights of the image are set to:
--w----r-T