Difficulty uploading images suggestion:
@untamed1 said in INTERIOR IMAGE NOT WORK:
@untamed1 said in INTERIOR IMAGE NOT WORK:
Need to edit file AdminAboutHotelBlockSettingController.php
strtolower needed for preg match.Under function processSave()
if (!(Tools::getValue("id_interior_image") && !$file['size'])) { if (!$file['size']) { $this->errors[] = Tools::displayError($this->l('Gallery Image Required.')); } elseif ($file['error']) { $this->errors[] = Tools::displayError($this->l('Cannot upload file.')); } elseif (!(preg_match('/\.(jpe?g|gif|png)$/', strtolower($file['name'])) && ImageManager::isRealImage($file['tmp_name'], $file['type'])) ) { $this->errors[] = Tools::displayError($this->l('Please upload image file.')); }Other option is to change preg_match string to '/.(jpe?g|gif|png)$/i'