Get a free website with any plan

See how
HOSTING

Increasing the maximum file upload size

Last updated

IN SHORT

Flashcloud's default PHP upload limit is 64MB, set by upload_max_filesize and post_max_size. You can raise both in cPanel's MultiPHP INI Editor, up to 256MB on shared and WordPress hosting. VPS limits depend on available memory, and the change applies within seconds with no restart.

By default, our hosting limits PHP file uploads to 64MB — fine for most uploads, but tight for large media or backup imports. You can raise it from the portal.

Where the limit comes from

Two PHP settings control upload size:

  • upload_max_filesize — max size of a single uploaded file.
  • post_max_size — max size of an entire POST request (must be larger than upload_max_filesize since the request includes form data plus the file).

Default: 64MB for both.

Raising the limit

  1. Open cPanel from your service page (the cPanel one-click login).
  2. Go to Software → MultiPHP INI Editor and pick your domain (or "Edit php.ini").
  3. Increase upload_max_filesize and post_max_size. Both should be the same value (or post_max_size slightly higher).
  4. Save.

The change applies within seconds. No restart needed.

How high can I go?

Plan caps:

  • Shared / WordPress hosting: up to 256MB typically.
  • VPS: whatever you configure (constrained by available memory).

If you need to upload single files larger than 256MB on shared hosting:

  • Use FTP/SFTP instead — no PHP-level limit. See Uploading files to your hosting.
  • Chunk the upload at the application level. WordPress media library handles this poorly; some plugins handle it better.
  • Upgrade to VPS if huge uploads are routine.

Other related limits

While you're tuning PHP options, two more matter for large uploads:

  • max_execution_time — how long a script can run before being killed. Large uploads + processing (e.g., resizing images on upload) can exceed the default 30 seconds. Raise to 120–300 if needed.
  • memory_limit — how much RAM a single PHP request can use. Large image processing during upload can hit this. Default is 256MB; raise to 512MB if needed.

All three are on the same PHP options page.

WordPress-specific

WordPress respects PHP's settings, but it also displays the upload limit in the Media Library. If you raise PHP's limit and WordPress still shows the old number, refresh the wp-admin page or open a new browser tab — WordPress reads the value once per page load.

Some plugins (especially security plugins) impose their own additional upload limits. Check plugin settings if you've raised PHP's limit but uploads still fail.

"Upload failed" troubleshooting

If a large upload fails:

  • Check file size against the limit — file must be smaller than upload_max_filesize.
  • Check execution time — if the upload itself completes but processing fails, raise max_execution_time.
  • Check disk quota — you may have hit your account's storage limit.
  • Check for client-side timeout — some browsers/networks time out long uploads. Try FTP for big files.
  • Check error logscPanel → Error Log shows PHP errors that might explain the failure.

Power-user note

The PHP options page lets you set per-domain values — useful when one app needs huge uploads but you don't want to globally raise the limit. The settings are written to .user.ini in the relevant document root and apply within the next request cycle.

Common questions

How do I increase the max upload size on my hosting?

Open cPanel from your service page, then Software, MultiPHP INI Editor. Raise upload_max_filesize and post_max_size to the same value, then save. It applies within seconds, no restart needed.

Why does WordPress still show the old upload limit after I raised it?

WordPress reads the PHP upload value once per page load, so it can still show the old number until you refresh wp-admin or open a new tab. If a security plugin sets its own limit, check that too.

What's the biggest file I can upload on shared hosting?

Shared and WordPress hosting typically support up to 256MB. For anything larger, use FTP or SFTP instead, since it has no PHP-level limit, or upgrade to VPS if big uploads are routine.

Why does my upload fail even though the file is under the size limit?

Check max_execution_time first: large uploads with processing, like image resizing, can exceed the default 30 seconds. Also check your disk quota and the cPanel error log, since both can cause a failure that looks like a size problem.

Can I set a different upload limit for just one site on my account?

Yes. The PHP options page lets you set per-domain values, which is useful when one app needs large uploads but you don't want to raise the limit account-wide. The setting writes to .user.ini in that domain's document root and applies within the next request cycle.

CAN'T FIND IT?

Real humans answer fast.

Hosting with us? Open a ticket and a real person replies - no scripts, no upsells. Still choosing a host? The same team is included with every plan, from day one.