Unable to upload file to the website: Request body no files data length is larger than the configured limit - Support Cases from Plesk Knowledge BaseUnable to upload file to the website: Request body no files data length is larger than the configured limit - Support Cases from Plesk Knowledge Base
Unable to upload file to the website: Request body no files data length is larger than the configured limit - Support Cases - Plesk Knowledge Base




Skip to content Contact us: +34 944 58 06 58 Plesk Partner Program Plesk Lifecycle Policy Blog Contact us Plesk 360 Menu Contact us: +34 944 58 06 58 Plesk Partner Program Plesk Lifecycle Policy Blog Contact us Plesk 360 Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers Menu Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration Plesk WordPress Edition Menu Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration Plesk WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Menu Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Exclusive discounts, benefits and exposure to take your business to the next level Become a partner Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Menu Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Menu WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Menu Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Imunify360 Pricing Extensions Help Center More Careers Events Plesk University FREE TRIAL Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Partner Program Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Extension Pricing Extensions Help center More Careers Events Webinars Plesk University Blog Plesk Partner Program Contact Us FREE TRIAL Menu Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Partner Program Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Extension Pricing Extensions Help center More Careers Events Webinars Plesk University Blog Plesk Partner Program Contact Us FREE TRIAL Knowledge Base Unable to upload file to the website: Request body no files data length is larger than the configured limit almalinuxserverweb application firewallviupdates Should this article appears to be applicable, please, check this other one and confirm it works in such a scenario so it can be merged Symptoms Unable to upload a file to the website hosted in Plesk with the error: 413 Request entity too large Request Entity Too LargeThe requested resource/upload-a-file/does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. ModSecurity Atomic ruleset is specified in Tools & Settings > Web Application Firewall (ModSecurity) > Settings orImunify360 is installed in Extensions. Cause WAF_SECREQUESTBODYNOFILESLIMIT parameter value reached its limit. The following error can be found in /var/www/vhosts/example.com/logs/error_log file: [:error] [pid 21701] [client 203.0.112.2] ModSecurity: Request body no files data length is larger than the configured limit (1048576).. Deny with code (413) [hostname "www.example.com"] [uri "/wp-admin/admin-ajax.php"] [unique_id "Wakfj-fvNMmcLKLp-n8PjQAAAAE"] Resolution If ModSecurity Atomic ruleset is specified in Web Application Firewall (ModSecurity) settings: Log into the server via SSH. Open /etc/asl/config file using the vi text editor. Increase the value for the WAF_SECREQUESTBODYNOFILESLIMIT directive, for example to the value as below (specified in Bytes): WAF_SECREQUESTBODYNOFILESLIMIT "10000000" Execute the command below to update the rulesets: # for i in daily weekly monthly; do /usr/local/psa/bSkip - to - content - Contact - us: - +34 - 944 - 58 - 06 - 58 - Plesk - Partner - Program - Plesk - Lifecycle - Policy - Blog - Contact - us - Plesk - 360 - Menu - Contact - us: - +34 - 944 - 58 - 06 - 58 - Plesk - Partner - Program - Plesk - Lifecycle - Policy - Blog - Contact - us - Plesk - 360 - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - Menu - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - Plesk - WordPress - Edition - Menu - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - Plesk - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Menu - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Exclusive - discounts - - benefits - and - exposure - to - take - your - business - to - the - next - level - Become - a - partner - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Menu - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Menu - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Menu - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Imunify360 - Pricing - Extensions - Help - Center - More - Careers - Events - Plesk - University - FREE - TRIAL - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Partner - Program - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Extension - Pricing - Extensions - Help - center - More - Careers - Events - Webinars - Plesk - University - Blog - Plesk - Partner - Program - Contact - Us - FREE - TRIAL - Menu - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Partner - Program - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Extension - Pricing - Extensions - Help - center - More - Careers - Events - Webinars - Plesk - University - Blog - Plesk - Partner - Program - Contact - Us - FREE - TRIAL - Knowledge - Base - Unable - to - upload - file - to - the - website: - Request - body - no - files - data - length - is - larger - than - the - configured - limit - almalinuxserverweb - application - firewallviupdates - Should - this - article - appears - to - be - applicable - - please - - check - this - other - one - and - confirm - it - works - in - such - a - scenario - so - it - can - be - merged - Symptoms - Unable - to - upload - a - file - to - the - website - hosted - in - Plesk - with - the - error: - 413 - Request - entity - too - large - Request - Entity - Too - LargeThe - requested - resource/upload-a-file/does - not - allow - request - data - with - POST - requests - - or - the - amount - of - data - provided - in - the - request - exceeds - the - capacity - limit. - ModSecurity - Atomic - ruleset - is - specified - in - Tools - & - Settings - > - Web - Application - Firewall - (ModSecurity) - > - Settings - orImunify360 - is - installed - in - Extensions. - Cause - WAF_SECREQUESTBODYNOFILESLIMIT - parameter - value - reached - its - limit. - The - following - error - can - be - found - in - /var/www/vhosts/example.com/logs/error_log - file: - [:error] - [pid - 21701] - [client - 203.0.112.2] - ModSecurity: - Request - body - no - files - data - length - is - larger - than - the - configured - limit - (1048576).. - Deny - with - code - (413) - [hostname - "www.example.com"] - [uri - "/wp-admin/admin-ajax.php"] - [unique_id - "Wakfj-fvNMmcLKLp-n8PjQAAAAE"] - Resolution - If - ModSecurity - Atomic - ruleset - is - specified - in - Web - Application - Firewall - (ModSecurity) - settings: - Log - into - the - server - via - SSH. - Open - /etc/asl/config - file - using - the - vi - text - editor. - Increase - the - value - for - the - WAF_SECREQUESTBODYNOFILESLIMIT - directive - - for - example - to - the - value - as - below - (specified - in - Bytes): - WAF_SECREQUESTBODYNOFILESLIMIT - "10000000" - Execute - the - command - below - to - update - the - rulesets: - # - for - i - in - daily - weekly - monthly; - do - /usr/local/psa/b -