Bug #16426
closedElement Browser: incorrect error messages upon file upload
0%
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)
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>writelog(1,1,104,'The uploaded file exceeds the size-limit of %s bytes',Array($this->maxUploadFileSize*1024));
++ class.t3lib_extfilefunc.php 3 Aug 2006 09:34:58 -0000@ -808,7 +808,7
@
} else $this
} 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.
Updated by Michael Stucki over 18 years ago
- t3lib_extfilefunc: func_upload() now logs if no file was uploaded.
Maybe he can tell more about this?
Updated by Martin Holtz over 18 years ago
hi, isnt it an duplicate bug of
http://bugs.typo3.org/view.php?id=4035
?
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.