Without changing these settings, you cannot upload files larger than 10 MB to your WordPress website.

There are two ways to change the upload file size limit in WordPress. Both require you to edit the website config files.

PHP.ini editing

php.ini is a configuration file for the hypertext preprocessor WordPress is built upon. Besides controlling the PHP parameters, php.ini also holds some parameters inherent to WordPress itself — including the upload file size limit.

In order to edit the php.ini:

  1. Log into cPanel
  2. Click File managerDS_290617_4a22dd
  3. Double click the public_html folder.DS_290617_3791ba
  4. Double click the wp-admin folder.DS_290617_433012
  5. If you have a hosting, and not a server or a VPS, then php.ini might not exist yet. In order to create it:
    1. Click +File.DS_290617_0c26ed
    2. Enter php.ini in the New file name field.
    3. Click Create new file.
  6. Click php.ini.DS_290617_ce9a3b
  7. Click Edit.DS_290617_ee5912
  8. Paste at the end of the file
    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 300
    
  9. Click Save changes.DS_290617_25f8f2
  10. Click Close.

.htaccess Editing

.htaccess is a hosting configuration file, which has many uses: from setting up redirects to setting up rights to access different files and folders. Among others, .htaccess can hold the value for the upload file size limit.

  1. Log into cPanel
  2. Click File managerDS_290617_4a22dd
  3. Double click the public_html folder.DS_290617_3791ba
  4. Click the .htaccess file.DS_290617_a43c3f
  5. Click Edit.DS_290617_ee5912
  6. Paste this code before the END_WORDPRESS line
    php_value upload_max_filesize 64M
    php_value post_max_size 64M php_value max_execution_time 300
    php_value max_input_time 300
  7. Click Save Changes.DS_290617_25f8f2
  8. Click Close.

If you are not comfortable with 64 megabyte file size limit, you can change it to the higher one. But contact your hosting support beforehand and confirm that your plan supports files of this size.