-
-
Notifications
You must be signed in to change notification settings - Fork 204
Add ability to increase Max Size of file uploads without building custom image #2164
Comments
As a workaround, if it's for kubernetes, we use this lifecycle
|
We've been editing the images/apache/Dockerfile Search for Port And before that section, we paste in Add max upload file sozeRUN php-ini-add "memory_limit=512M" && Then just rebuild, tag with ECR value, push to ECR, and redeploy. I'm going to look into your suggestion. Thanks |
hey guys how about https://github.com/directus/docker/issues/103#issuecomment-593375413 ? And also https://github.com/directus/docker/pull/30#issuecomment-471780967 Does it make sense? |
Haven't tried that approach but it should work. |
btw We use the approach Nacho previously posted. It has worked flawlessly for over a month. |
There is a way to change this on both Here is what one should do on
And here is the equivalent syntax on ECS:
|
Marc's answer worked for me. |
The Max Size of file uploads is set to 2MB by default. This is a PHP setting. To overcome this in the past, we have needed to build custom images and define our own configuration variables.
Talk has been ongoing for at least the past couple of years about how to handle this and similar cases. For instance, https://github.com/directus/docker/pull/30
Obviously, 2MB isn't going to work for many installations, so I would think now that api and app have been integrated and the Docker solution is more mature, we should address this. Not handling this defeats the value of having Docker images available.
The text was updated successfully, but these errors were encountered: