Project

General

Profile

Actions

Bug #16783

closed

File Upload does not recognize BEUser - Option "defaultFileUploads"

Added by Benni Mack almost 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-12-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If I use in UserTSconfig

options.defaultFileUploads = 5

still only one file upload is shown when uploading a file. The option is not taken into account since it is applied wrong in the code.

The patch fixes this small bug in typo3/file_upload.php

That's why it is not working:

$GLOBALS['BE_USER']->getTSConfig('options.defaultFileUploads')

returns an array in TYPO3 4.0 with
array (value => '5', properties => '')

and not an integer as we needed it. A simple check if it is an array or an integer and then a correct use should help here. All this is added in the patch.
(issue imported from #M4643)


Files

file_upload_defaultFileUploads.patch (858 Bytes) file_upload_defaultFileUploads.patch Administrator Admin, 2006-12-12 14:16
bug_4643.diff (892 Bytes) bug_4643.diff Administrator Admin, 2006-12-12 18:39
Actions

Also available in: Atom PDF