There are several places to check if you're having problems uploading large files:
- Web server configuration (i.e. Apache or IIS)
- PHP configuration (php.ini)
- Occasionally, another system like a firewall will step in and cause trouble.
Apache 2.x, for example, has a LimitRequestBody directive that will prevent large file uploads. Note that file uploads are encoded, and are only part of the request that the web server receives, so a LimitRequestBody of 8 megs won't necessarily allow a file upload of 8 megs. You may be able to override these settings on a shared environment with an appropriate .htaccess directive.
There are several file upload limits in your PHP configuration file, php.ini:
- max_post_size: This is analagous to the LimitRequestBody directive described above, but checked in PHP rather than in the web server code.
- file_uploads: This is where file uploads are enabled or disabled.
- upload_max_filesize: This is where you can define the maximum upload file size.
Likewise, it may be possible to override these settings with a .htaccess file; for example:
- Code: Select all
php_value upload_max_filesize 10M
This will depend on your web server's security settings for .htaccess files; you can verify whether or not these work by generating a phpinfo output.
Open Journal Systems Team