Problems Uploading large Attachments

Grinderhand said:
More details and a screenshot would help.

i can not make screenshot from this

Got a small problem. When trying to upload any attachment larger than 1MB the upload appears to just 'hang' and the upload fails. Uploads are set to "0" (unlimited size) No error messages can be seen. It just quits and the browser hangs on a blank page.
 
First, setting Max Filesize to 0 means just that - 0 bytes. You have to put some size in bytes into that box.

Second, your hosts PHP settings will undoubtedly have a limit already imposed on your account. You may be able to get around this if your host supports local php values. You can attempt this by either making a local php.ini file in your forum root with these statements:

Code:
upload_max_filesize = 20M
post_max_size = 25M
memory_limit = 32M
max_execution_time = 480
max_input_time = 480

or you can add the following statements to your .htaccess file in your forum root:

Code:
php_value upload_max_filesize = 20M
php_value post_max_size = 25M
php_value memory_limit = 32M
php_value max_execution_time = 480
php_value max_input_time = 480

Either way, if your host supports local php values this should give you a max upload size of 20MB. If this results in failed uploads, either your host doesn't support doing this or you could try lowering the 20M value until you find a value that does work. If the 20M value does work and you want it to be bigger, know that the upload_max_filesize should be smaller than post_max_size and post_max_size should be smaller than memory_limit. Also, if you find the average time it takes to upload a bigger file exceeds 8 minutes, you can try changing the 480 values to 600 (time in seconds).
 
Are you on shared, paid hosting? If so it's likely the host who has SET TO ALLOW too low. Oops sorry just saw your settings.
 
Back
Top