Project

General

Profile

Actions

Bug #82006

closed

Wrong interpretation of post_max_size and/or upload_max_filesize

Added by Markus Dübbert over 6 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 #1

Updated by Wolfgang Klinger over 6 years ago

Take a look at the last comment here: https://stackoverflow.com/questions/37381522/php-7-php-ini-upload-max-filesize-not-working
I guess the problem is somewhere else in your configuration (check the log files).

Actions #2

Updated by Markus Klein over 6 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (9.0)
Actions #3

Updated by Alexander Opitz over 6 years ago

The only thing I found is an issue with the Install Tool checker, which returns the value for post_max_size instead of upload_max_filesize but this haven't todo with your issue.

After checking source it seams, your upload_max_filesize is 2M and not 8M, please recheck your settings. Will create an other ticket for the Install Tool Checker. (Is #83230)

Actions #4

Updated by Alexander Opitz over 6 years ago

  • Related to Bug #83230: PostUpload check returns false value to FE added
Actions #5

Updated by Riccardo De Contardi about 6 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one. Thank you.

Actions

Also available in: Atom PDF