Last updated: · By Asael Dreyer
Short answer: The 413 Request Entity Too Large error means the file is bigger than the server’s limit. On Cloudways you raise Upload Size under the server’s Settings & Packages. “Sorry, this file type is not permitted” is WordPress blocking file types it doesn’t recognize, and you fix it with a plugin or a line in wp-config.php. When WordPress asks for FTP details to install a plugin, add FS_METHOD to wp-config.php and reset file permissions from the application settings.
⏱ Time needed: 5–15 minutes per issue · Difficulty: easy to medium · Last checked against the platform: 6 Nov 2026
Why uploads fail: the four layers every file passes through
When you upload a file to WordPress, it passes several gatekeepers on the way. Any of them can stop it, and each returns a different message. The message tells you where the problem is.
- The web server (Nginx). On Cloudways, Nginx sits in front and sets a maximum request size. A request that’s too large is blocked there with a 413.
- PHP. The upload_max_filesize and post_max_size settings determine how much PHP is willing to accept. If they’re too small, WordPress shows that the file exceeds the limit.
- WordPress. It only approves a list of file types. A file of another type is blocked with “Sorry, this file type is not permitted for security reasons”.
- The file system. If the user running the site has no write permission to the folder, or the disk is full, the file isn’t saved. Sometimes this shows up as a request for FTP details.
| The message you see | The layer | The fix |
|---|---|---|
| 413 Request Entity Too Large | Nginx and PHP | Increase Upload Size |
| The uploaded file exceeds the upload_max_filesize directive | PHP | Increase Upload Size |
| Sorry, this file type is not permitted for security reasons | WordPress | Allow the file type |
| A request for Connection Information / FTP details when installing a plugin | File system | FS_METHOD and resetting permissions |
| Permission denied, 403, Could not copy the file | Permissions | Reset permissions |
| Unable to create directory, or an upload that fails with no explanation | Disk or inodes | Full disk guide |
Before you start
- Back up the application before editing wp-config.php.
- Have SFTP or SSH access ready. See connecting to your server with FileZilla.
- Make sure you’re the account owner or a team member with permission for the server and the application.
How to fix 413 Request Entity Too Large, step by step
According to the Cloudways knowledge base article, Nginx limits the request body to 10MB by default. Cloudways’ fix is to raise Upload Size in the platform. It’s important that PHP’s upload settings match this value too, so the upload passes every layer. The setting is at the server level, so it applies to every application on it.
- Log in to the platform, open Servers and select your server.
- Under Server Management, choose Settings & Packages.
- On the Basic tab, change Upload Size (in MB) to a value larger than the biggest file you want to upload.
- Click Save Changes.
- Try the upload again. The WordPress media library (Media, then Add New) shows the maximum size, so you can see the change took effect.

Don’t raise it to a huge number “just in case”. A value that’s too high also lets bots send giant requests. For a regular site, a value that covers your largest video or import file is enough. For a one-time import of a huge file, it’s better to upload over SFTP.
If 413 keeps appearing
- Check for a syntax error in any PHP settings you edited manually at the application level (Application Settings, the PHP Settings tab), and that the upload_max_filesize, post_max_size and memory_limit lines are written correctly.
- Make sure post_max_size is equal to or larger than upload_max_filesize. Otherwise PHP will truncate the request.
- Check whether a plugin (for example a forms or import plugin) limits the size on its own.
- If you’re behind Cloudflare, remember that it has its own request size limit too, depending on your plan.
- Restart PHP-FPM under Manage Services to make sure every change is loaded.
What to do when you see “Sorry, this file type is not permitted for security reasons”
WordPress blocks file types it doesn’t recognize, so that nobody uploads an executable file to your server. This block comes from WordPress and not from Cloudways, so it shows up with every hosting company.
| Category | Extensions WordPress allows |
|---|---|
| Images | jpg, jpeg, png, gif, ico |
| Documents | pdf, doc, docx, ppt, pptx, pps, ppsx, odt, xls, xlsx, psd |
| Audio | mp3, m4a, ogg, wav |
| Video | mp4, m4v, mov, wmv, avi, mpg, ogv, 3gp, 3g2 |
The list follows the Cloudways knowledge base article, and it’s partial. Newer WordPress versions also added formats such as WebP, and ZIP and CSV are allowed by default. Commonly blocked files: SVG, fonts (woff, ttf) and JSON files. If ZIP or CSV files are blocked for you, the cause is usually a security plugin or a server limit, not WordPress’s type list.
The recommended way: a plugin that allows specific types
- In the WordPress dashboard, install and activate the free WP Extra File Types plugin.
- Go to Settings and then Extra File Types.
- Tick only the extensions you actually need. You can add a custom extension at the bottom of the page.
- Click Save Changes and try the upload again.
On a WordPress network (Multisite) you don’t need a plugin: the network admin goes to Settings, then Network Settings, and adds extensions in the Upload File Types field under Upload Settings.
The blanket way: ALLOW_UNFILTERED_UPLOADS
You can add this line to wp-config.php, above the “That’s all, stop editing” line: define('ALLOW_UNFILTERED_UPLOADS', true);. It turns off file type filtering. Cloudways itself warns to use it with care, because nothing will stop a malicious file from being uploaded. I recommend it only for a short time, for example for a one-time import, and deleting it right afterwards.
A note on SVG: an SVG file can contain JavaScript code. If you allow SVG, prefer a plugin that sanitizes the file on upload, and allow uploads only for administrators.
What to do when WordPress asks for FTP details
You install or update a plugin, and instead of installing, a “Connection Information” screen appears asking for an FTP server, username and password. This happens when WordPress isn’t sure it can write directly to the files. According to Cloudways, the usual reason is that wp-config.php is missing the FS_METHOD setting, which tells WordPress to write directly.
- Connect to the server. The easy way is SFTP with the application’s credentials. You can also use an SSH terminal from the browser: on the server, under Master Credentials, click Launch SSH Terminal (if the browser warns about a certificate, it’s a self-signed Cloudways certificate and you can continue).
- With master credentials, move to the folder:
cd applications, thencdinto the application folder name (the same as its database name), thencd public_html. With application credentials you’re already in public_html. - Open wp-config.php (in an editor over SFTP, or over SSH with
vim wp-config.php). - Above the DB_NAME line, add:
define('FS_METHOD','direct'); - Save (in vim: Esc, then
:wq!and Enter) and try installing the plugin again.
If the screen keeps appearing, or the installation fails with Could not create directory, the problem is file ownership. Continue to resetting permissions.
How to reset file and folder permissions on Cloudways
Files uploaded as the wrong user, for example over SFTP with the master credentials, or files that arrived in a migration, can be owned by a user the site can’t write as. On Cloudways you reset this in one click, if you’re the account owner or a team member with permission for the application.
- In the platform, choose Flexible and then My Servers, and select the application’s server.
- Click the globe button (WWW) and select the application.
- In the side menu choose Application Settings, and find Reset File/Folders Permission.
- In the dropdown, choose the user who will get ownership. Usually choose the application user, and the master user only if you know why.
- Click Reset.

What the reset does: it applies to public_html only. Folders get permission 775 and files 664, which are the defaults, and ownership moves to the user you chose. If a 403 error still shows in a specific folder after the reset, check whether a rule in .htaccess is blocking it. To verify permissions, run ls -l over SSH in the application folder.
Common mistakes and how to fix them
Permissions of 777 “to make it work”: that opens the folder to writing by every user on the server. Use the Cloudways reset instead.
Uploading over SFTP with the master credentials: the files will be owned by the master user, and WordPress then won’t be able to update them. Upload with the application credentials, or reset permissions afterwards.
Leaving ALLOW_UNFILTERED_UPLOADS active: that’s an open hole. Delete the line after using it.
You raised Upload Size and nothing changed: check whether an application-level setting overrides the server value, and whether a security plugin or Cloudflare imposes a separate limit.
The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.
The offer ends on December 4, 2026 at 23:59 (UTC+2).
Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.
After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
Sources
This page is based on the following official documentation and pages:
- How to fix 413 request entity too large error (Cloudways Knowledge Base)
- How to fix the sorry this file type is not permitted for security reasons error in WordPress (Cloudways Knowledge Base)
- How to resolve WordPress asking for FTP credentials error (Cloudways Knowledge Base)
- How can I reset file and folder permissions (Cloudways Knowledge Base)
Frequently asked questions
On the server, under Settings & Packages, on the Basic tab, change Upload Size and click Save Changes. The setting applies to every application on the server, and solves most cases of the 413 error.
Because SVG isn’t on the list of types WordPress allows, and it can contain code. You can allow it with a plugin, preferably one that sanitizes the file during upload.
Because it isn’t sure it can write directly to the files. Add define(‘FS_METHOD’,’direct’); to wp-config.php, and if that’s not enough, reset the file permissions to the application user.
775 for folders and 664 for files. These are the values the reset in the Cloudways platform applies in public_html, along with ownership for the user you choose.
Not for permanent use. It turns off file type filtering and allows dangerous files to be uploaded. Use it only for a one-time task, and delete it right afterwards.
Related guides
- The 404 error in WordPress
- The 500 error in WordPress
- 502 and 504 errors
- The white screen of death in WordPress
- PHP settings in depth: PHP settings on Cloudways
- All troubleshooting guides: Troubleshooting on Cloudways
- Still deciding? Cloudways hosting review: the full picture
Official sources: How to Fix 413 Request Entity Too Large Error · How to Fix the “Sorry, This File Type Is Not Permitted” Error · How to Resolve “WordPress Asking for FTP Credentials” Error · How Can I Reset File and Folder Permissions (Cloudways Knowledge Base). Written and checked by Asael Dreyer · Updated: 6 Nov 2026
Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details