News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Upload Directory with Base Pase

Started by masterjo752, 25.11.2015 20:46:48

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

masterjo752

Is it possible, that the upload-directory could be relative to joomla-installation path?

We've got a lot of sites where we need to get relative pathes. I would suggest a placeholder like "__basedir__". It could be in the helpers/jdownloadshelper.php between line 1753 and 1754: $jlistConfig['files.uploaddir'] = str_replace("__basedir__", JPATH_SITE, $jlistConfig['files.uploaddir']);
  •  

masterjo752

So i just checked and found a mistake.
You should pass the original value to and other config-variable like this: $jlistConfig['files.uploaddir.placeholder']  = $jlistConfig['files.uploaddir']; Then you can get this value in the configuration view for editing. Adding this 3 lines to the files would be very usefull for us.
  •