简体   繁体   English

在VTiger 6.5中未上传照片

[英]Uploading of photos in VTiger 6.5 doesn't show up

I installed VTiger 6.5 (patch 4.2). 我安装了VTiger 6.5(4.2版)。 In Contacts modules I added an additional upload feature beside upload profile pic. 在“联系人”模块中,我在上传个人资料图片旁边添加了其他上传功能。

enter image description here 在此处输入图片说明

In the image, the part encircled in blue is the field I added. 在图像中,蓝色包围的部分是我添加的字段。 Now when I attached picture it is working and saving all picture in the storage folder, but I noticed that It is not saving in the database. 现在,当我附加图片时,它可以工作并将所有图片保存在存储文件夹中,但是我注意到它没有保存在数据库中。 Now since it was not saving in the database, the profile pic and the calling card pic in the view is missing. 现在,由于它没有保存在数据库中,因此视图中的个人资料图片和电话卡图片丢失了。

Link is here, take note that I have this installed in my localhost. 链接在这里,请注意,我已经在本地主机中安装了此链接。

http://localhost/crm__/index.php?module=Contacts&view=Detail&record=19&mode=showDetailViewByMode&requestMode=full

enter image description here 在此处输入图片说明

If you needed the code for the contacts.php or rather the controller then I can post it here. 如果您需要contacts.php或控制器的代码,那么我可以在此处发布。 But since it was long I'll just skip that part for now and just show u the saving to database part. 但由于时间长,我现在暂时跳过该部分,仅向您显示保存到数据库的部分。

        $sql2 = "insert into vtiger_attachments(attachmentsid, name, description, type, path) values(?, ?, ?, ?, ?)";

        $params2 = array($current_id, $filename, $this->column_fields['description'], $filetype, $upload_file_path);

        $result = $adb->pquery($sql2, $params2);

I reall don;t know much how to debug php in Vtiger as I cannot just insert an echo and die. 我实在不知道;我不知道如何在Vtiger中调试php,因为我不能仅仅插入回声而死。

Thanks for the help. 谢谢您的帮助。

Please Open this file of c:\\xampp\\php\\php.ini search this line into file 请打开此文件c:\\ xampp \\ php \\ php.ini将此行搜索到文件中

;extension=php_fileinfo.dll and remove semicolon(;) and save it ; extension = php_fileinfo.dll并删除分号(;)并保存

Please check Vtiger installation requirements https://wiki.vtiger.com/index.php/System_Requirements 请检查Vtiger安装要求https://wiki.vtiger.com/index.php/System_Requirements

for upload files in vtiger you need to install mime_magic or fileinfo extension on PHP. 要在vtiger中上传文件,您需要在PHP上安装mime_magicfileinfo扩展名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM