如何在Vtiger中更改上传目录

时间:2016-05-12 11:36:14

标签: vtiger

当用户在Vtiger(Producte模块)上传图像时创建自动路径。现在,图片路径的格式为/storage/2016/May/week2/26540_IMG_NAME.png。我需要把它变成/storage/product/IMG_NAME.png。我怎么能这样做?

Vtiger版本6.3.0

1 个答案:

答案 0 :(得分:1)

您必须更改\vtlib\Vtiger\Functions.php以更改上传目录路径。

- 确保您创建的目录具有读写权限

static function initStorageFileDirectory() {
       //change the directory path by modifying the $filepath
}

希望它会对你有所帮助。谢谢!

相关问题