Reputation: 243
When user upload image in Vtiger (Producte module) created automatic path. Now image path has the form /storage/2016/May/week2/26540_IMG_NAME.png
. I need chenge it to /storage/product/IMG_NAME.png
. How I can do it?
Vtiger version 6.3.0
Upvotes: 1
Views: 1589
Reputation: 1508
You have to change in \vtlib\Vtiger\Functions.php
to change the upload directory path.
-- Make sure that the directory you are created having read write permissions
static function initStorageFileDirectory() {
//change the directory path by modifying the $filepath
}
Hope it will help you. Thank you!
Upvotes: 1