Once ticket is created, we offer assistance within 24 hours. We appreciate for your understanding.

Okay
  Print

How to Increase the Maximum File Upload Size for Your Website

Managing file uploads is essential for any website that allows users to upload files, whether it’s for images, videos, or documents. Sometimes, the default maximum file upload size set by your server or CMS may not meet your needs. In this article, we’ll walk you through the steps to increase the maximum file upload size for your website.

Why Increase the File Upload Size?

Here are a few reasons why you might need to increase the file upload size:

  • Uploading larger media files such as high-resolution images or videos.
  • Allowing users to upload detailed documents or reports.
  • Enabling large backup or import files for your site.

Step 1: Check the Current File Upload Limit

Before making changes, you need to know the current file upload limit. Follow these steps:

  1. Log in to your website's admin panel (e.g., WordPress, Teconce Support System, etc.).
  2. Navigate to the System Settings or Media Settings section.
  3. Look for an option like Max File Upload Size. Note the current limit.

Alternatively, you can create a PHP file with the following content to check the limit:

<?php
phpinfo();
?>

Upload this file to your server and open it in your browser to see the current upload_max_filesize and post_max_size values.


Step 2: Increase the Upload Size Limit

There are several methods to increase the maximum file upload size, depending on your hosting setup. Choose the one that applies to your environment.

A) Update php.ini File

The php.ini file controls many server configurations, including file upload limits.

  1. Access your server using an FTP client or your hosting control panel.
  2. Locate the php.ini file (it’s usually in the root folder or /etc/ directory).
  3. Add or edit the following lines:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
  1. Save the file and restart your web server.

B) Modify .htaccess File (For Apache Servers)

If your website uses Apache, you can change the upload limit through the .htaccess file.

  1. Open the .htaccess file in the root directory of your website.
  2. Add these lines:
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    
  1. Save the file. No need to restart the server as changes take effect immediately.

C) Update via cPanel or Hosting Dashboard

  1. Log in to your hosting provider’s control panel.
  2. Navigate to PHP Settings or MultiPHP INI Editor.
  3. Locate the upload_max_filesize and post_max_size settings.
  4. Increase the values (e.g., 64M).
  5. Save changes and restart your server if required.

D) Use a Plugin (For WordPress)

If you’re using WordPress, plugins like Increase Maximum Upload File Size or WP Maximum Upload File Size make this process simple:

  1. Install and activate the plugin.
  2. Go to the plugin settings.
  3. Set the desired maximum upload size.
  4. Save changes.

Step 3: Update Application Settings

After increasing the server-level limits, make sure to update the settings within your website’s admin panel to reflect the new limit:

  1. Log in to your website admin panel.
  2. Navigate to the Settings or Upload Options section.
  3. Update the Max File Upload Size field with the new value.

Step 4: Verify the Changes

To confirm the changes:

  1. Attempt to upload a file close to the new size limit.
  2. Check if the upload is successful without errors.
  3. If it fails, double-check your changes and contact your hosting provider if needed.

Troubleshooting Common Issues

  • Changes Not Taking Effect: Ensure you restarted your server after modifying configuration files.
  • Permission Errors: Make sure you have the necessary permissions to edit the configuration files.
  • Shared Hosting Restrictions: Some shared hosting providers may enforce strict limits. Contact your hosting provider for assistance.

Conclusion

Increasing the maximum file upload size is a straightforward process when you know the right settings to adjust. Whether you’re running a website on WordPress, a custom CMS, or any platform, these steps will help you accommodate larger file uploads and improve user experience. If you encounter difficulties, your hosting provider’s support team is an excellent resource for assistance.