Increase Max Upload Size on Azure App Service PHP8

Daryl Peter 0 Reputation points
2023-06-19T10:02:01.71+00:00

I'm trying to upload larger files to a PHP 8 app running on Azure App Service.

The instructions in the Microsoft Documentation for Azure App Service are referencing PHP 7 which used Apache, rather than the PHP 8 instances which use NGINX so they don't work.

I have tried adding client_max_body_size 100M; to the sites-available/default config file and restarted NGINX but no luck in getting it to work. The test file is 11MB, smaller files of 1MB work fine.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,262 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Nicolas Mikellides (CTC ITEC) 20 Reputation points
    2024-08-20T13:36:09.53+00:00

    Was this ever resolved ? I currently have issues with most of my sites hosted on Azure!! I have followed recomdation from @Grmacjon-MSFT above but that does not work

    0 comments No comments

  2. Bogdan Berg 5 Reputation points
    2024-11-07T04:01:22.6133333+00:00

    I'm facing the same problem, trying 1 solution at a time from every thread I can find online, still no success and am stuck at the 50MB limit.

    Puzzling, how such basic functionality/configuration requirement can become so obfuscated in Azure...


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.