[Vtigercrm-developers] 6.4.0 change to CRMEntity.php?

ptdesigner ptdesigner at gmail.com
Fri Oct 16 12:47:49 GMT 2015


    
That's the change that don't let me upload company logo anymore.

-------- Mensagem original --------
De : Alan Lord <alanslists at gmail.com> 
Data: 16/10/2015  13:33  (GMT+00:00) 
Para: vtigercrm-developers at lists.vtigercrm.com 
Assunto: [Vtigercrm-developers] 6.4.0 change to CRMEntity.php? 

In 6.4.0 is this new chunk of code at line 140:

>                 $save_file = 'true';
>                 //only images are allowed for Image Attachmenttype
>                 $mimeType = mime_content_type($file_details['tmp_name']);
>                 $mimeTypeContents = explode('/', $mimeType);
>                 // For contacts and products we are sending attachmentType as value
>                 if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) {
>                         $save_file = validateImageFile($file_details);
>                 }
>                 if ($save_file == 'false') {
>                         return false;
>                 }

Note the test line:

>  if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) {

I just searched the whole CRMEntity.php file and can't find 
$attachmentType *anywhere* else in the file... Is that correct?

Al

_______________________________________________
http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20151016/bc18f42a/attachment.html>


More information about the vtigercrm-developers mailing list