Start for free – your first 3 months are freeSee the offer

Files, SFTP and SSH

Upload large files when uploading through your website fails

Getting an error when you upload a large video, archive or backup through WordPress or your website? Here's how the upload limit works, and how to get around it with SFTP.

2 min readUpdated

On this page
  1. What the error typically looks like
  2. Upload the file with SFTP instead
  3. Frequently asked questions
  4. Does changing the PHP version help?
  5. Does a php.ini or .user.ini with a higher limit work?
  6. How much space do I have?

If you upload a file through your website, for example in the WordPress media library or an import plugin, it passes through the web server and PHP. There is a fixed limit per upload here, typically 128 MB. If you upload with SFTP, the file goes straight to the disk, and the limit doesn't apply.

Two routes: uploading through the website passes PHP with a limit of typically 128 MB, uploading with SFTP goes straight to the web hosting
The limit only applies to uploads through the website

What the error typically looks like

  • WordPress says the file exceeds upload_max_filesize.
  • The browser shows the error 413 Request Entity Too Large.
  • The upload reaches 100% and then disappears without a message.

Upload the file with SFTP instead

  1. Step 1: Connect with an FTP program

    Connect to the web hosting with FileZilla or another program with SFTP on port 22.

  2. Step 2: Find the right folder

    For WordPress media, it's typically sites/main/public/wp-content/uploads. For other files, choose the folder your website expects.

  3. Step 3: Upload the file

    Drag the file across. There is no limit per file beyond the disk space your plan has.

  4. Step 4: Make the file visible in WordPress

    Files you put directly in uploads don't show up in the media library automatically. Use a plugin to import them, or, if you have SSH, the wp media import command with the path to the file.

Frequently asked questions

Does changing the PHP version help?

No, the limit is the same in all PHP versions. You change the PHP version under Web hosting → PHP: it applies to all websites on the web hosting. See change the PHP version.

Does a php.ini or .user.ini with a higher limit work?

The web server has its own limit for how large an upload it accepts. You can't change it with a file on the web hosting, so use SFTP for large files.

How much space do I have?

It depends on your plan. Under Web hosting → Disk usage you can see how much you're using.

Read about web hosting

Didn't find the answer?

Reply within 1 working day · Mon–Fri 8:00–17:00 CET