Cannot upload file in TYPO3 v7.4-dev
[BUGFIX] Cannot upload file in TYPO3 v7.4-dev
TYPO3 7.4-dev introduces a mechanism to handle auto-renaming of
existing files upon upload. This new workflow causes the preFileAdd
to be fired twice, once without any source file name (before actual
upload, just to test target) and the second time just as before,
when the file has actually been uploaded.
The pre-check should be used to report any converted target file
name (e.g., when converting from bmp to jpg) in order for the
check of existing target file to be properly handled.
Reviewed-by: Xavier Perseguers <firstname.lastname@example.org>
Tested-by: Xavier Perseguers <email@example.com>
#1 Updated by Xavier Perseguers about 4 years ago
- Status changed from New to Accepted
preFileAdd is called twice in case a file does not yet exist, first time with empty
$sourceFile to check for file existence and prompt for what to do
- In case uploading a bmp to be converted to jpg, the first call should already return the target file name in jpg
- When re-uploading an existing file, prompt lets overwrite, image_autoresize is then not called!