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 #1

Updated by Thomas Hempel almost 18 years ago

Where schould this take effect?
I patched the file but I always get the dfault number of upload fields. I looked in the fileadmin and in the "select image" dialog.

Greets,
Thomas

Actions #2

Updated by Benni Mack almost 18 years ago

Hey Thomas.
As I read on the core-list, the problem exists and the patch really solves it for you too?

Actions #3

Updated by Thomas Hempel almost 18 years ago

It seems I made a mistake with patching the file. Today it works and fixes this issue.

Greets,
Thomas

Actions #4

Updated by Michael Stucki almost 18 years ago

Fixed in Trunk and 4.0.5.

Actions

Also available in: Atom PDF