Feature #37084

t3lib_TStemplate::getFileName() can't find uploaded files from BE environment

Added by Tobias Knab about 1 year ago. Updated about 1 year ago.

Status:Needs Feedback Start date:2012-05-11
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Frontend
Target version:4.7.1
TYPO3 Version:4.7 Complexity:
PHP Version:5.3
Votes: 0

Description

The realtive test of the upload files does not work from the BE environment. The is_file check should therefore be done with an absolute filepath. This would require the source code be modified as follows:

Line 1099:
[-] if (@is_file($this->uplPath . $outFile)) {
[+] if (@is_file(PATH_site . $this->uplPath . $outFile)) {

History

Updated by Susanne Moog about 1 year ago

  • Status changed from New to Needs Feedback

Thanks for your contribution. If you want to help to get this bug fixed, you can push it to Gerrit. Find a tutorial at http://wiki.typo3.org/Contribution_Walkthrough_Tutorials

Please also add more information on how to reproduce the bug (steps necessary to see it) to this bug report.

Also available in: Atom PDF