[Vtigercrm-developers] 6.4.0 change to CRMEntity.php?
Manuel Fernando
ptdesigner at gmail.com
Mon Oct 19 16:07:07 GMT 2015
Hello Alan,
Also for products, images don't get uploaded.
Tested in official demo vtiger as well
Track updated
http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8637
Best Regards.
Manuel
> No dia 16/10/2015, às 13:33, Alan Lord <alanslists at gmail.com> escreveu:
>
> 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/
More information about the vtigercrm-developers
mailing list