Project

General

Profile

Actions

Bug #16426

closed

Element Browser: incorrect error messages upon file upload

Added by Christoph Roth over 18 years ago. Updated about 18 years ago.

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

0%

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

Description

Element browser in TYPO3 4.0.1: If I try to upload an image file into a folder, after clicking "Upload" the element browser shows error messages: "Error 2, No file was uploaded". This message is always shown twice. In spite of these messages, the file has been uploaded correctly. [BE][maxFileSize] is not set.

(issue imported from #M3971)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16464: Error message when uploading one or two files in file-browser (BE)ClosedErnesto Baschny2006-08-13

Actions
Actions #1

Updated by Peter Russ over 18 years ago

diff u -r1.1 class.t3lib_extfilefunc.php
--
class.t3lib_extfilefunc.php 1 Aug 2006 11:54:43 0000 1.1
++ class.t3lib_extfilefunc.php 3 Aug 2006 09:34:58 -0000
@ -808,7 +808,7 @
} else $this
>writelog(1,1,104,'The uploaded file exceeds the size-limit of %s bytes',Array($this->maxUploadFileSize*1024));
} else $this->writelog(1,1,105,'You are not allowed to upload files!','');
} else $this->writelog(1,2,106,'The uploaded file did not exist!','');
- } else $this->writelog(1,2,106,'No file was uploaded!','');
} //else $this->writelog(1,2,106,'No file was uploaded!','');
}

/**
---------------------------------------------------------
check: t3lib/class.extfilefunc.php:
function func_upload
line 811 the comment was added :-( in version 4.0.1
Any reason for that: no idea.

As it was not there neither in 4.0 nor in 3.8.1 I guess it is not that important and uncommented it. We will see.

Actions #2

Updated by Michael Stucki over 18 years ago

That change was done by Karsten on 2006-06-28:
  • t3lib_extfilefunc: func_upload() now logs if no file was uploaded.

Maybe he can tell more about this?

Actions #3

Updated by Martin Holtz over 18 years ago

hi, isnt it an duplicate bug of
http://bugs.typo3.org/view.php?id=4035
?

Actions #4

Updated by Ernesto Baschny over 18 years ago

Yes, #16464 contains a patch created at t3dd06 which solves this problem. It doesn't simply removes the log entry, but it will log now if an upload was expected and none were given. If a single upload field was filled with some file, it will go through without an error.

Actions

Also available in: Atom PDF