jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Suggestions - Feature Request => Topic started by: masterjo752 on 25.11.2015 20:46:48

Title: Upload Directory with Base Pase
Post by: masterjo752 on 25.11.2015 20:46:48
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']);
Title: Re: Upload Directory with Base Pase
Post by: masterjo752 on 27.11.2015 13:37:46
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.