Maximum File Size Upload Limits
Understanding the maximum file size you can upload to your dotCanada.com hosting account is important when managing your website content. This guide explains the default limits, how they vary by upload method, and how you can modify these limits if needed.
Default File Size Upload Limits
Your dotCanada.com hosting account has several different file size limits depending on which method you use to upload files:
Upload Method | Default Maximum Size | Best For |
---|---|---|
cPanel File Manager | 150 MB | Small to medium-sized files, quick uploads |
FTP/SFTP | Unlimited* | Large files, multiple files, entire websites |
PHP (through web applications) | 128 MB | CMS uploads, form submissions, plugins |
Email Attachments | 25 MB | Sharing documents via email |
* While there is no hard limit for FTP uploads, practical limits exist based on connection stability and time. Very large files (>2GB) may require special handling.
Understanding Different Upload Limits
cPanel File Manager Limits
The cPanel File Manager has a default upload limit of 150 MB per file. This limit is set by cPanel itself and applies to the web-based file uploader. This means:
- Individual files larger than 150 MB will fail to upload
- You can upload multiple files, each up to 150 MB
- For larger files, you should use FTP instead
FTP/SFTP Upload Limits
FTP and SFTP protocols don't have inherent file size limitations imposed by dotCanada.com. This means:
- You can technically upload files of any size
- Practical limitations exist based on:
- Your internet connection speed and stability
- Available disk space in your hosting account
- Time constraints (very large files may take hours to upload)
- For files over 2GB, special FTP clients may be required due to protocol limitations
PHP Upload Limits
PHP upload limits affect uploads through web applications like WordPress, Joomla, Drupal, or custom web forms. By default, these limits are set to:
- upload_max_filesize: 128 MB
- post_max_size: 128 MB
- memory_limit: 256 MB
- max_execution_time: 300 seconds (5 minutes)
These limits determine how large files can be when uploaded through:
- WordPress media uploader
- Contact form attachments
- CMS plugin or theme installers
- Any custom PHP script that handles file uploads
How to Check Your Current Upload Limits
Checking PHP Upload Limits
- Create a PHP file with the following content:
<?php phpinfo(); ?>
- Upload this file to your hosting account (name it info.php or similar)
- Access it through your browser (e.g., yourdomain.com/info.php)
- Search for the following values:
- upload_max_filesize
- post_max_size
- memory_limit
- max_execution_time
- These values show your current PHP upload limits
- For security reasons, delete this file after checking
Checking FTP/SFTP Limits
There is no built-in way to check FTP upload limits since they're not explicitly set. The practical limits depend on your hosting plan's disk space allocation.
Increasing Upload Limits
You can increase PHP upload limits using either of these methods:
Method 1: Using cPanel's MultiPHP INI Editor
- Log in to your cPanel account at https://{hostname}.mysecureservers.com:2087
- Search for "MultiPHP INI Editor" or find it in the SOFTWARE section
- Click on MultiPHP INI Editor
- Select your domain from the dropdown menu
- Modify the following values:
- upload_max_filesize (increase to your desired limit, e.g., 256M)
- post_max_size (should be slightly larger than upload_max_filesize, e.g., 260M)
- memory_limit (should be larger than post_max_size, e.g., 512M)
- max_execution_time (increase for larger uploads, e.g., 600)
- Click Apply to save your changes
Method 2: Using .htaccess File
- Access File Manager in cPanel
- Navigate to your website's root directory (usually public_html)
- Look for an existing .htaccess file or create a new one
- Edit the file and add these lines:
php_value upload_max_filesize 256M php_value post_max_size 260M php_value memory_limit 512M php_value max_execution_time 600 php_value max_input_time 600
- Save the changes
Some content management systems have their own upload limits that you may need to adjust:
WordPress
- After increasing your PHP limits as described above, you might also need to adjust WordPress itself
- Add this line to your wp-config.php file:
define('WP_MEMORY_LIMIT', '256M');
- For multisite installations, also add:
define('WP_MAX_MEMORY_LIMIT', '512M');
Joomla
- Log in to your Joomla administrator panel
- Go to System > Global Configuration
- Click on the Server tab
- Look for "Maximum Upload Size" and adjust it
- Click Save
Drupal
- Log in to your Drupal administrator panel
- Go to Configuration > Media > File System
- Adjust the "Maximum Upload Size" field
- Click Save Configuration
For exceptionally large files that exceed what's practical to upload in one piece:
File Splitting
- Split the large file into smaller chunks using tools like:
- 7-Zip or WinRAR on Windows
- The "split" command on Mac/Linux
- Upload the smaller parts via FTP
- Reassemble the file on the server using:
- File extraction tools if you used an archive format
- The "cat" command via SSH if you have SSH access
Using a Specialized FTP Client
Some FTP clients handle large files better than others:
- FileZilla has good support for resuming interrupted transfers
- WinSCP offers options for splitting large file transfers into chunks
- CuteFTP has advanced transfer options for large files
Best Practices for File Uploads
- Use the right method for the job:
- cPanel File Manager for small, quick uploads
- FTP for large files or bulk uploads
- CMS uploaders for content that belongs in your website
- Optimize before uploading:
- Compress images using tools like TinyPNG or ImageOptim
- Use video compression for media files
- Consider lossy compression for very large files where quality is less critical
- Monitor your disk space:
- Check your available disk space before uploading large files
- Clean up unnecessary files regularly
- Consider upgrading your hosting plan if you consistently need to upload large files
- Use a stable internet connection:
- Wired connections are more reliable than wireless for large uploads
- Use FTP clients that support resuming interrupted transfers
Troubleshooting Upload Issues
Common Error Messages and Solutions
- "File exceeds upload_max_filesize directive":
- The file is larger than your PHP upload_max_filesize setting
- Increase the limit as described above or use FTP instead
- "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form":
- The form has its own file size restriction
- Check for MAX_FILE_SIZE in your HTML form code
- "Request Entity Too Large":
- Your web server has additional limits that need adjustment
- Contact support for assistance with server-level configurations
- "413 Request Entity Too Large":
- Similar to above, this is a web server limit
- Use FTP instead of web-based uploads
- "Connection timed out" (FTP):
- Your upload is taking too long
- Use an FTP client with resume capability
- Consider splitting the file into smaller parts
If you need assistance with file uploads or have questions about size limits, please contact our support team.