Jump to content

Formato PDF en campos personalizados de tipo archivo.


enramos

Recommended Posts

Estos son los lugares en código para cambiarlo. El paso final es en el método isRealImage.

Here are the places in code to change it. The final step is in the isRealImage method.

 

 

/controllers/front/ProductController.php
pictureUpload()

if ($error = ImageManager::validateUpload($file, (int)Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE')))
    $this->errors[] = $error;

 


/classess/ImageManager.php
pictureUpload()

if (!ImageManager::isRealImage($file['tmp_name'], $file['type']) || !ImageManager::isCorrectImageFileExt($file['name'], $types))
return Tools::displayError('Image format not recognized, allowed formats are: .gif, .jpg, .png');

 


 

/classess/ImageManager.php
isRealImage()

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...