Project

General

Profile

Actions

Bug #82006

closed

Wrong interpretation of post_max_size and/or upload_max_filesize

Added by Markus Dübbert almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2017-07-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
file upload
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 8.7.1
PHP 7.1.6 7-71LATEST-STANDARD
Server domainfactory

file upload of files (backend file list) with a size more than 2 MB fails, because of an error:

Datei "20170514_111240.jpg" überschreitet maximale Dateigröße von 2.0 MB!

In the install tool under system environement > more php info i habe the following values according to my php.ini

upload_max_filesize 8M
post_max_size 8M

I'm not able to upload a file with e.G. 4MB because of the error message above.

If i change line 2621 of the file typo3_src-8.7.1/typo3/sysext/core/Classes/Utility/GeneralUtility.php
from

return floor(($phpUploadLimit)) / 1024;

to
return 8000;

the errormessage from above disappears.
I can see the file uploading progress bar working as normal, but at the end i get another red error message:

The upload has failed, no uploaded file found!Hochladen von Datei "20170514_111240.jpg" fehlgeschlagen.

What is going wrong here?

I have the correct php values, but file upload fails.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #83230: PostUpload check returns false value to FEClosedAlexander Opitz2017-12-05

Actions
Actions

Also available in: Atom PDF