Project

General

Profile

Actions

Bug #97770

closed

Better error message for RuntimeException while uploading a file

Added by Stefan Froemken almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2022-06-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF