{"id":9913,"date":"2025-11-13T04:30:52","date_gmt":"2025-11-13T04:30:52","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=9913"},"modified":"2025-11-13T04:47:21","modified_gmt":"2025-11-13T04:47:21","slug":"increase-file-upload-size-nginx","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/","title":{"rendered":"How to Increase File Upload Size in NGINX"},"content":{"rendered":"\n<p>NGINX is a powerful web server used by many high traffic websites and applications. Often users need to upload large files such as images, videos and backups, to these apps\/sites. If your NGINX server is unable to handle them, then it will return &#8216;413 Request Entity Too Large&#8217; error. There it is important to increase file upload size in NGINX, so that users get a smooth user experience. In this article, we will learn how to increase file upload size in NGINX.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#Why_Increase_File_Upload_Size_in_NGINX\" >Why Increase File Upload Size in NGINX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#How_to_Increase_File_Upload_Size_in_NGINX\" >How to Increase File Upload Size in NGINX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#1_Open_NGINX_Configuration\" >1. Open NGINX Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#2_Modify_client_max_body_size_directive\" >2. Modify client_max_body_size directive<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#3_Look_at_client_body_timeout\" >3. Look at client_body_timeout<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#4_Restart_NGINX_Server\" >4. Restart NGINX Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#Points_to_Remember\" >Points to Remember<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Increase_File_Upload_Size_in_NGINX\"><\/span>Why Increase File Upload Size in NGINX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>1. Allow Larger Uploads<\/strong> &#8211; These days most applications and sites need to allow users to upload large images, and videos. These files are large and so you need to increase file upload size in NGINX.<\/p>\n\n\n\n<p><strong>2. Improve User Experience<\/strong> &#8211; When file upload fails, it leads to a disappointing user experience. If you increase file upload size, then users will not get the &#8216;upload failed&#8217; error message. They will be able to enjoy a better user experience.<\/p>\n\n\n\n<p><strong>3. Support Application Requirements<\/strong> &#8211; Some applications and sites like social media services and ecommerce sites, inherently need to support large file uploads. Some applications that communicate with your website, may need your server to be able to handle large file transfers. In such cases, it is better to increase file upload size.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Increase_File_Upload_Size_in_NGINX\"><\/span>How to Increase File Upload Size in NGINX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to increate file upload size in NGINX. For this purpose, we need to modify the client_max_body_size directive in NGINX server configuration file. It determines the maximum allowed file size for uploads in NGINX.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Open_NGINX_Configuration\"><\/span>1. Open NGINX Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, we find and open NGINX configuration file in a text editor. By default, it is found at \/etc\/nginx\/nginx.conf. If you are using virtual hosts, then open the virtual host configuration file at \/etc\/nginx\/sites-available or \/etc\/nginx\/conf.d\/ directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Modify_client_max_body_size_directive\"><\/span>2. Modify client_max_body_size directive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You just need to specify the max file size allowed immediately after the directive. You can add client_max_body_size directive in 3 contexts &#8211; <em>http, server or location<\/em>. Depending on where you add the directive, it will give a different result. Let us look at them one by one in detail. Here is a sample command to set the file uploads to 50Mb.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">client_max_body 50M;<\/pre>\n\n\n\n<p>If you add this in http block, then it will be applied to all servers running inside that block.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">http {<br> ...<br> client_max_body 50M;<br> ...<br>}<\/pre>\n\n\n\n<p>This is convenient if you run many servers on an NGINX instance and need to update them all at one go. If you add it to a specific <em>server<\/em> block, then it will be applied to only that server or virtual host and nothing else. Here is an example to add client_max_body directive to HTTP server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">server {<br>  listen 80;<br>  ...<br>  client_max_body 50M;<br>  ...<br>}<\/pre>\n\n\n\n<p>This gives you more control and allows you to increase allowed file size only where required. If you have added client_max_body directive to both <em>http<\/em> and <em>server<\/em> block, then the directive in <em>server<\/em> block will take precedence. So even if you have set a specific file across all servers, using http block, you can always override it using server block.<\/p>\n\n\n\n<p>Lastly, if you need to increase file upload size only for specific URLs, then you can add this directive in location block for that location. Here is an example to increase file upload size only for \/upload URL.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">location \/upload {<br>  ...<br>  client_max_body 50M;<br>  ...<br>}<\/pre>\n\n\n\n<p>This approach allows you to precisely increase file size only for those URLs that actually need it. In case you have added client_max_body directive for both <em>server<\/em> and <em>location<\/em> blocks, then the directive in <em>location<\/em> block takes precedence.<\/p>\n\n\n\n<p>Also, you can use suffix M for megabytes (e.g. 20M for 20 Mb), G for Gigabytes (e.g. 30G for 30Gb).<\/p>\n\n\n\n<p>Save and quit the file when you are done.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Look_at_client_body_timeout\"><\/span>3. Look at client_body_timeout<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.oreilly.com\/library\/view\/nginx-http-server\/9781788623551\/5ddb872b-93b9-4470-b9f6-de0020199b03.xhtml\">client_body_timeout<\/a> determines the amount of time NGINX server needs to wait for a request to complete, before closing the connection with client. By default, it is set to 60 seconds. <\/p>\n\n\n\n<p>When you increase the client_max_body directive, then you may also need to modify the value of client_body_timeout directive. Like client_max_body directive, you can add this in <em>http<\/em>, <em>server<\/em> or <em>location<\/em> blocks. In fact, most system administrators add it immediately after client_max_body directive.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">client_max_body ...;<br>client_body_timeout ...;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Restart_NGINX_Server\"><\/span>4. Restart NGINX Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Restart NGINX server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo service nginx restart<br>OR<br>sudo systemctl restart nginx<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Points_to_Remember\"><\/span>Points to Remember<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are some key points to remember after you increase file upload size in NGINX:<\/p>\n\n\n\n<p><strong>1. Update upstream server <\/strong>&#8211; After you increase file upload size in NGINX, you need to also update the file upload parameters in upstream web server like Apache. Otherwise, even if NGINX is able to handle large file uploads, it will give an error while being transferred to upstream server. For example, if you run a PHP site, you will need to update upload_max_filesize in php.ini to match client_max_body value.<\/p>\n\n\n\n<p><strong>2. User intuitive error message<\/strong> &#8211; No matter how much you increase file size limit, there will always be instances when a user file size exceeds the limit you have set. For such cases, display an intuitive response message to improve user experience.<\/p>\n\n\n\n<p><strong>3. Limit file size to avoid abuse or overuse<\/strong> &#8211; While increasing file upload size is good, it is also important to limit it beyond a point. Otherwise, the large files will take up too much space on your server and not allow other users to upload anything. Also, large files take long time to upload. So it may also be used by hackers to bring down your site, with the help of slow file uploads.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have learnt how to increase upload file size in NGINX server. As you can see, it is fairly easy and can help your site performance. We have covered different use cases in this article. We learnt how to apply it to all servers running on a single NGINX server, for all URLs on a single server, or for a single URL, or group of URLs. You can use any of the above steps, depending on your requirement.<\/p>\n\n\n\n<p>Also read:<br><a href=\"https:\/\/ubiq.co\/tech-blog\/block-image-hotlinking-allow-google\/\">How to Block Image Hotlinking But Allow Google<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/remove-trailing-slash-in-nginx\/\">How to Remove Trailing Slash in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/change-nginx-port-number-ubuntu\/\">How to Change NGINX Port Number in Ubuntu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.<\/p>\n","protected":false},"author":1,"featured_media":9942,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[615],"class_list":["post-9913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx","tag-upload-size"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Increase File Upload Size in NGINX - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Increase File Upload Size in NGINX - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-13T04:30:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T04:47:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Increase File Upload Size in NGINX\",\"datePublished\":\"2025-11-13T04:30:52+00:00\",\"dateModified\":\"2025-11-13T04:47:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/\"},\"wordCount\":1050,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1\",\"keywords\":[\"upload size\"],\"articleSection\":[\"Nginx\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/\",\"name\":\"How to Increase File Upload Size in NGINX - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1\",\"datePublished\":\"2025-11-13T04:30:52+00:00\",\"dateModified\":\"2025-11-13T04:47:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1\",\"width\":300,\"height\":200,\"caption\":\"increase file upload size in nginx\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/increase-file-upload-size-nginx\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Increase File Upload Size in NGINX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Increase File Upload Size in NGINX - Ubiq BI","description":"Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/","og_locale":"en_US","og_type":"article","og_title":"How to Increase File Upload Size in NGINX - Ubiq BI","og_description":"Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.","og_url":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2025-11-13T04:30:52+00:00","article_modified_time":"2025-11-13T04:47:21+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Increase File Upload Size in NGINX","datePublished":"2025-11-13T04:30:52+00:00","dateModified":"2025-11-13T04:47:21+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/"},"wordCount":1050,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1","keywords":["upload size"],"articleSection":["Nginx"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/","url":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/","name":"How to Increase File Upload Size in NGINX - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1","datePublished":"2025-11-13T04:30:52+00:00","dateModified":"2025-11-13T04:47:21+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Sometimes you may need to increase file upload size in NGINX. Here are the steps to do this.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1","width":300,"height":200,"caption":"increase file upload size in nginx"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Increase File Upload Size in NGINX"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/11\/increase-file-upload-size-nginx.jpg?fit=300%2C200&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-2zT","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/9913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=9913"}],"version-history":[{"count":30,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/9913\/revisions"}],"predecessor-version":[{"id":9954,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/9913\/revisions\/9954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/9942"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=9913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=9913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=9913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}