Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum upload file size for images will be ignored #502

Closed
kikmedia opened this issue May 31, 2019 · 5 comments
Closed

Maximum upload file size for images will be ignored #502

kikmedia opened this issue May 31, 2019 · 5 comments

Comments

@kikmedia
Copy link

Affected version(s)
4.4.40, 4.6.14, 4.7.5

Description
If one sets a maximum size for images in system settings, this setting will be ignored in file manager

How to reproduce
Set the values for uploads to a reasonable amount, i.e. 3.500 x 3.500 pixels and 8 MB. Goto file manager and upload an image with more than 3.500 pixels. The upload will be finished, and afterwards the too-large-image will be at place in files.

IMHO this setting should prevent uploads of larger files in every case, and I think it does in Contao 3.

@kikmedia kikmedia changed the title Upload file size will be ignored Maximum upload file size for images will be ignored May 31, 2019
@fritzmg
Copy link
Contributor

fritzmg commented May 31, 2019

Which settings exactly are you referring to?

@kikmedia
Copy link
Author

kikmedia commented Jun 1, 2019

I‘m referring to the backend system settings regarding file uploads. Sorry if this wasn‘t clear enough.

@ausi
Copy link
Member

ausi commented Jun 1, 2019

I was not able to reproduce this issue. I uploaded a 5000 by 5000 pixel large image and it got correctly resized down to 3500.

If you are using GD on your webspace please make sure that the maximum GD image width and height are set high enough to handle your uploaded image.

Possibly related: contao/core#6726

@fritzmg
Copy link
Contributor

fritzmg commented Jun 2, 2019

Plus the feature of preventing large file uploads has been implemented in Contao 4.6 contao/core-bundle#1507

@leofeyer
Copy link
Member

@kikmedia Were you able to resolve your issue?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants