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

Unable to upload images larger than ~1.5MB or view existing uploaded images #238

Open
pruwait opened this issue Jun 17, 2023 · 3 comments
Open

Comments

@pruwait
Copy link

pruwait commented Jun 17, 2023

Problem/Motivation

My problem like here: BookStackApp/BookStack#4306

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Need to edit container php.ini

@ssddanbrown
Copy link

Just a note on this, since the mention of "1.5MB" could lead troubleshooting down the wrong path, this likely isn't an issue of file size limits, but the PHP process becoming exhausted of memory during attempted thumbnail creation.
So often tangential to image file size, but depends on image compression.

Based upon what was previously done for increasing file size limits, might just need a php_admin_value[memory_limit] = 256M to double the default memory limit.

@pruwait
Copy link
Author

pruwait commented Jun 20, 2023

I change memory_limit = 512M in php.ini and problem is gone.

@sinclairpaul
Copy link
Member

I change memory_limit = 512M in php.ini and problem is gone.

Can you validate with 256?, then will look at a change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants