elyo-luk Posted April 18, 2014 Share Posted April 18, 2014 Hello, I'm having problems with the filemanager when I'm adding the product description. I try to upload something, it's uploaded correctly and when I'm try to add it to the product description, the file recently added just doesn't appear. If I upload the file by FTP, it doesn't appear. I tryied to change the upload directory. It happends with all kind of files. What happend? Thanks PD: Sorry for my bad english 1 Link to comment Share on other sites More sharing options...
elyo-luk Posted April 21, 2014 Author Share Posted April 21, 2014 Anyone please? Link to comment Share on other sites More sharing options...
vekia Posted April 21, 2014 Share Posted April 21, 2014 url to this picture looks well? does this file (path) exists there? Link to comment Share on other sites More sharing options...
elyo-luk Posted April 22, 2014 Author Share Posted April 22, 2014 Yes, if I upload an image, I can access to the image by URL. I can create new folder too. I tried: Edit the upload path. Upgrade the Filemanager (From here). Change the chmod of the folders to 777. Nothing works Link to comment Share on other sites More sharing options...
knightrider132 Posted May 15, 2014 Share Posted May 15, 2014 Have the same problem, filemanager makes folder, upload files to /img/cms/myfoldername/myimge.jpg, but filemanager in admin display sourse of images from: /admin[number]/img/cms/myfoldername/myimge.jpg, thats what need to be fix or tell us where to change this, cheers Link to comment Share on other sites More sharing options...
knightrider132 Posted May 15, 2014 Share Posted May 15, 2014 (edited) Also by click on image there is an arror with juqery so cant put fake images to filed, I click on images and nothing is happening Edited May 15, 2014 by knightrider132 (see edit history) Link to comment Share on other sites More sharing options...
knightrider132 Posted May 15, 2014 Share Posted May 15, 2014 solution by my self:path: /admin/filemanager/config/config.phpreplace$upload_dir = __PS_BASE_URI__.'img/cms/';to$upload_dir = '/img/cms/';path: /admin/filemanager/dialog.phpreplace$mini = $thumb = __PS_BASE_URI__.substr($thumbs_path.$subdir.$file, strlen(_PS_ROOT_DIR_) + 1);to$mini = $thumb = '/'.substr($thumbs_path.$subdir.$file, strlen(_PS_ROOT_DIR_) + 1); Link to comment Share on other sites More sharing options...
SiteLab Posted October 13, 2014 Share Posted October 13, 2014 Thanks for your solution knightrider132 it works for me =) Link to comment Share on other sites More sharing options...
moneeeka Posted October 27, 2014 Share Posted October 27, 2014 Thanks for this. It worked for me as well. It's also easier to do compared to the other solutions I found on this forum Link to comment Share on other sites More sharing options...
empeti Posted October 29, 2014 Share Posted October 29, 2014 Thanks for the solution Knightrider132.It works well if you don't use a folder or a virtual folder on your server to install prestashop.If you intalled it this way, try this:path: /admin/filemanager/config/config.phpreplace$upload_dir = __PS_BASE_URI__.'img/cms/';to$upload_dir = preg_replace('/\/admin\d*\//i','/',__PS_BASE_URI__).'img/cms/'; path: /admin/filemanager/dialog.phpreplace$mini = $thumb = __PS_BASE_URI__.substr($thumbs_path.$subdir.$file, strlen(_PS_ROOT_DIR_) + 1);to$mini = $thumb = preg_replace('/\/admin\d*\//i','/',__PS_BASE_URI__).substr($thumbs_path.$subdir.$file, strlen(_PS_ROOT_DIR_) + 1); Hope this help. 1 Link to comment Share on other sites More sharing options...
lunara Posted November 2, 2014 Share Posted November 2, 2014 (edited) Thanks for the solution Knightrider132. It works well if you don't use a folder or a virtual folder on your server to install prestashop. If you intalled it this way, try this: path: /admin/filemanager/config/config.php replace $upload_dir = __PS_BASE_URI__.'img/cms/'; to $upload_dir = preg_replace('/\/admin\d*\//i','/',__PS_BASE_URI__).'img/cms/'; path: /admin/filemanager/dialog.php replace $mini = $thumb = __PS_BASE_URI__.substr($thumbs_path.$subdir.$file, strlen(_PS_ROOT_DIR_) + 1); to $mini = $thumb = preg_replace('/\/admin\d*\//i','/',__PS_BASE_URI__).substr($thumbs_path.$subdir.$file, strlen(_PS_ROOT_DIR_) + 1); Hope this help. Edited November 3, 2014 by lunara (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts