#23885Uploads outside of DOCUMENT_ROOT
Description
I have Userpics and dont want to save them out of DOCUMENT_ROOT.
To do this i just tried this in:
class.t3lib_tcemain.php
Line: 6616
function destPathFromUploadFolder($folder) {
// old version
return PATH_site.$folder;
// new version
return realpath(PATH_site.$folder);
}
After this change you can specify an uploadfolder in TCA like: ‘../pathtouploadfolder/’
There is also some Versioning stuff in filehandling on Line 1623.
Replace this with: $valueArray[$key] = $dest.$theFile;
(issue imported from #M16186)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.