Web App Max Upload Size

Marcos Feliciano 1 Reputation point

Hi folks,

I installed WordPress with MySQL in App, and got 50MB as max upload file size, tried many solutions found even here on Q&A, MSDN and so on, but I'm not sure if this limit can be changed.

Has anybody been able to increase this limit? If yes, How?

Many thanks in advance!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,535 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Ryan Hill 24,546 Reputation points Microsoft Employee

    Hi @Marcos Feliciano ,

    You can customize the PHP_INI_SYSTEM directives. In the kudu console, you can navigate to D:\home\site\wwwroot folder. Inside that, you'll see .user.ini file. Edit this file:

    upload_max_filesize = 200M  
    post_max_size = 210M  

    Save the file and restart your app service. You should see this change reflected on the Media Library page.



    0 comments No comments

  2. Marcos Feliciano 1 Reputation point

    Hi @Ryan Hill thanks for your answer, but the issue I'm facing is related more to increasing the size of the files I can upload to my WebApp, I've created a few other tests, but I was not able to find any doc related to increase the max file size capacity for the host itself.


    I've done many tricks on WordPress side, and I was able to see it work on WP layer, but even though I was being blocked by WebApp somehow.

    I even tried the following option under Linux hosting:


    But now I'm using Windows due to the fact I can only have PHP 7.4, so what I'm checking if anybody has found a similar solution for Windows.

    I see from the print you provided, there is this option for "max upload file size", but do I need to install the multisite?

    On the article, I see the max file size is set to 300MB, and I'm trying to do the same, do you know how to change this setting?

    Many thanks in advance!

  3. Nicko Pekhlivanov 1 Reputation point

    It seems the problem is related to the IIS configuration.
    You may have to edit web.config, <system.webServer> section and add the following to set a 200 MB limit:

    <requestLimits maxAllowedContentLength="209715200" />

    The web.config file is in "wwwroot".

    0 comments No comments