// Fix #PSCFV-4156

This commit is contained in:
rGaillard
2012-09-19 14:15:53 +00:00
parent 0ef57ee71a
commit 28bc178e62
@@ -981,7 +981,7 @@ class WebserviceSpecificManagementImagesCore implements WebserviceSpecificManage
$image_content = array('sqlId' => 'content', 'value' => file_get_contents($this->imgToDisplay));
$this->output .= $this->objOutput->objectRender->renderField($image_content);
}
elseif ($this->imageType == 'categories')
elseif (in_array($this->imageType, array('categories', 'manufacturers', 'suppliers', 'stores')))
{
if (!($tmpName = tempnam(_PS_TMP_IMG_DIR_, 'PS')) || !move_uploaded_file($file['tmp_name'], $tmpName))
throw new WebserviceException('An error occurred during the image upload', array(76, 400));