Skip to content

Commit

Permalink
Change PHP post_max_size
Browse files Browse the repository at this point in the history
Must change post_max_size in addition to upload_max_filesize to increase total upload size to greater than 8MB.
  • Loading branch information
octobunny committed Aug 11, 2022
1 parent c7d9baa commit 8324b94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if [ -v "PHP_UPLOAD_LIMIT" ]
then
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
fi

# If the Oauth DB files are not present copy the vendor files over to the db migrations
Expand Down

0 comments on commit 8324b94

Please sign in to comment.