Project

General

Profile

Actions

Feature #23885

closed

Uploads outside of DOCUMENT_ROOT

Added by Carsten Bleicker about 14 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-31
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

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)

Actions

Also available in: Atom PDF