【发布时间】:2016-05-12 11:36:13
【问题描述】:
当用户在 Vtiger(Producte 模块)中上传图片时创建了自动路径。现在图像路径的格式为/storage/2016/May/week2/26540_IMG_NAME.png。我需要把它改成/storage/product/IMG_NAME.png。我该怎么做?
Vtiger 版本 6.3.0
【问题讨论】:
标签: vtiger
当用户在 Vtiger(Producte 模块)中上传图片时创建了自动路径。现在图像路径的格式为/storage/2016/May/week2/26540_IMG_NAME.png。我需要把它改成/storage/product/IMG_NAME.png。我该怎么做?
Vtiger 版本 6.3.0
【问题讨论】:
标签: vtiger
您必须更改\vtlib\Vtiger\Functions.php才能更改上传目录路径。
-- 确保您创建的目录具有读写权限
static function initStorageFileDirectory() {
//change the directory path by modifying the $filepath
}
希望对您有所帮助。谢谢!
【讨论】:
\vtlib\Vtiger\Functions.php 中我没有找到这些设置。