Project

General

Profile

Feature #23885

Updated by Mathias Schreiber almost 10 years ago

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)

Back