Project

General

Profile

Actions

Feature #23885

closed

Uploads outside of DOCUMENT_ROOT

Added by Carsten Bleicker over 13 years ago. Updated over 9 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 #1

Updated by Riccardo De Contardi almost 10 years ago

  • Target version deleted (0)

Could it be closed after the introduction of FAL?

Actions #2

Updated by Carsten Bleicker almost 10 years ago

Funny,
this is 3 years old.
I can't remember this.

But i dont think so because still strict path_site is used:
typo3_src/typo3/sysext/core/Classes/DataHandling/DataHandler.php:6509
typo3_src/typo3/sysext/core/Classes/Database/ReferenceIndex.php:909

Actions #3

Updated by Mathias Schreiber over 9 years ago

  • Description updated (diff)
  • Status changed from New to Closed
Actions

Also available in: Atom PDF