#97770Better error message for RuntimeException while uploading a file
Description
Hello,
if I upload a file in fileadmin I get following error message:
Uploaded file could not be moved! There might be a problem with write permissions in "10"?
I have checked the folder permissions. 775 is more than enough to write files there.
After a reload of the folder in filelist module I see that the image was uploaded.
I found following lines in Core:
} catch (\RuntimeException $e) {
$this->writeLog(SystemLogFileAction::UPLOAD, SystemLogErrorClassification::USER_ERROR, 100, 'Uploaded file could not be moved! Write-permission problem in "%s"?', [$targetFolderObject->getIdentifier()]);
$this->addMessageToFlashMessageQueue('FileUtility.UploadedFileCouldNotBeMoved', [$targetFolderObject->getIdentifier()]);
}
There is no line logging the real error. I have changed these lines on my local machine and the error is now:
RuntimeException: Invalid path or filename for Tika application jar: /kunden/12345_1234/rp-hosting/1234567/2345678/typo3cms/tools/tika-app-1.28.1.jarUpload of file "IMAGE_Fehler_csv.png" failed!
This is a completely different error and has nothing to do with renaming problems.
Nice greetings and I wish you all a long warm weekend
Stefan