News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

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.
  •