Issue Bug Closed

#16783File Upload does not recognize BEUser - Option "defaultFileUploads"

Benni Mack 12/12/06, 14:16 updated 03/13/07, 15:31

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.