Pink Code Pink Code - 6 months ago 61
jQuery Question

responsivefilemanager upload path in localhost

I'm using responsivefilemanager for file upload in tinymce. But in settings config file I have problem.

install and server details:

base url : h**p://localhost (xammp)

folder : /user/

upload folder : /user/uploads/files/

thumbs folder : /user/uploads/files/thumbs/

Install filemanager: /user/templates/admin/js/filemanager/


Now, I set config file like this:

$base_url =
// Get HTTP/HTTPS
((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http').
'://'.
// Get domain portion
$_SERVER['HTTP_HOST']; // DON'T TOUCH (base url (only domain) of site (without final /)).
$upload_dir = '/user/uploads/files/'; // path from base_url to base of upload folder (with start and final /)
$current_path = '../../files/'; // relative path from filemanager folder to upload folder (with final /)
//thumbs folder can't put inside upload folder
$thumbs_base_path = '../../thumbs/';


But This not worked and won't upload/create folder ....

How can fix/edit config file?

Answer

Just Replace:

$current_path = '../../files/'; // relative path from filemanager folder to upload folder (with final /)
    //thumbs folder can't put inside upload folder
$thumbs_base_path = '../../thumbs/';

With :

$current_path = '../../../../uploads/files/'; // relative path from filemanager folder to upload folder (with final /)
//thumbs folder can't put inside upload folder
$thumbs_base_path = '../../../../uploads/files/thumbs/'; // relative path from filemanager folder to thumbs folder (with final /)