[Vtigercrm-developers] 6.4.0 change to CRMEntity.php?
Uma S
uma.s at vtiger.com
Fri Oct 16 13:11:51 GMT 2015
Hi Alan,
It should be passed an an parameter to api as shown below.
function uploadAndSaveFile($id, $module, $file_details,
$attachmentType='Attachment') {
Source will be updated soon.
On Fri, Oct 16, 2015 at 6:17 PM, ptdesigner <ptdesigner at gmail.com> wrote:
> 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/
>
> _______________________________________________
> http://www.vtiger.com/
>
--
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20151016/ef7cb6f6/attachment.html>
More information about the vtigercrm-developers
mailing list