// Fix #PSCFV-4156
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17420 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -981,7 +981,7 @@ class WebserviceSpecificManagementImagesCore implements WebserviceSpecificManage
|
|||||||
$image_content = array('sqlId' => 'content', 'value' => file_get_contents($this->imgToDisplay));
|
$image_content = array('sqlId' => 'content', 'value' => file_get_contents($this->imgToDisplay));
|
||||||
$this->output .= $this->objOutput->objectRender->renderField($image_content);
|
$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))
|
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));
|
throw new WebserviceException('An error occurred during the image upload', array(76, 400));
|
||||||
|
|||||||
Reference in New Issue
Block a user