Skip to content

WordPress Upload Errors: 413 Request Entity Too Large, File Type Not Permitted and FTP Prompt on Cloudways

On this page

Last updated: · By

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.

  1. 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.
  2. 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.
  3. 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”.
  4. 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 seeThe layerThe fix
413 Request Entity Too LargeNginx and PHPIncrease Upload Size
The uploaded file exceeds the upload_max_filesize directivePHPIncrease Upload Size
Sorry, this file type is not permitted for security reasonsWordPressAllow the file type
A request for Connection Information / FTP details when installing a pluginFile systemFS_METHOD and resetting permissions
Permission denied, 403, Could not copy the filePermissionsReset permissions
Unable to create directory, or an upload that fails with no explanationDisk or inodesFull 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.

  1. Log in to the platform, open Servers and select your server.
  2. Under Server Management, choose Settings & Packages.
  3. On the Basic tab, change Upload Size (in MB) to a value larger than the biggest file you want to upload.
  4. Click Save Changes.
  5. Try the upload again. The WordPress media library (Media, then Add New) shows the maximum size, so you can see the change took effect.
The Basic tab in server settings: execution time, upload size and memory limit
The Basic tab: this is where you change the server’s Upload Size

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.

CategoryExtensions WordPress allows
Imagesjpg, jpeg, png, gif, ico
Documentspdf, doc, docx, ppt, pptx, pps, ppsx, odt, xls, xlsx, psd
Audiomp3, m4a, ogg, wav
Videomp4, 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

  1. In the WordPress dashboard, install and activate the free WP Extra File Types plugin.
  2. Go to Settings and then Extra File Types.
  3. Tick only the extensions you actually need. You can add a custom extension at the bottom of the page.
  4. 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.

  1. 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).
  2. With master credentials, move to the folder: cd applications, then cd into the application folder name (the same as its database name), then cd public_html. With application credentials you’re already in public_html.
  3. Open wp-config.php (in an editor over SFTP, or over SSH with vim wp-config.php).
  4. Above the DB_NAME line, add: define('FS_METHOD','direct');
  5. 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.

  1. In the platform, choose Flexible and then My Servers, and select the application’s server.
  2. Click the globe button (WWW) and select the application.
  3. In the side menu choose Application Settings, and find Reset File/Folders Permission.
  4. In the dropdown, choose the user who will get ownership. Usually choose the application user, and the master user only if you know why.
  5. Click Reset.
General application settings: Webroot, reset permissions and clear cache
Application settings, including resetting file and folder permissions

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.

Black Friday80% off
80% off 2 months of managed hosting

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).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

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

Sources

This page is based on the following official documentation and pages:

Frequently asked questions

How do I increase the maximum upload size on Cloudways?

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.

Why won’t WordPress let me upload SVG files?

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.

Why does WordPress ask for FTP details when I install a plugin?

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.

What are the right file permissions for WordPress on Cloudways?

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.

Is ALLOW_UNFILTERED_UPLOADS safe?

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.

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

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL