Posting with larger attachments goes back to a new post page

Started by Ali_, October 04, 2012, 02:58:44 AM

Previous topic - Next topic

Ali_

Hello everyone,

I'm having a really odd error when trying to upload an attachment.  They mostly get uploaded, but when the filesize is tad bigger, it causes SMF to just go back to the post reply page, with an empty field box.

I'm using SMF 2.0.2, php settings allow for 200M uploads as well as the required settings mentioned in the requirements page for SMF.

Anyone else experience something similar?  There's no actual error messages, as the permissions, and settings as far as I can tell are ok.

LiroyvH

What's your setting for post_max_size and memory limit?
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Ali_


Ali_

Ahhh, nevermind. :)

I realize that post_max_size includes the attachment data.  So it should at the least include the size value as the upload limit.  Double checked the requirements.

◦ max_input_time set to a value of at least 30.
post_max_size and upload_max_filesize set to the size of the largest attachments you wish to be able to upload.
◦ memory_limit set to at least 8M.
◦ max_execution_time set to at least 15.
◦ register_globals set to Off.
◦ session.use_trans_sid set to Off.
◦ safe mode disabled, or PHP suExec enabled.
◦ BCMath library enabled for using the OpenID registration method

Ali_

Also, I changed memory_limit to 64.  Don't need it at such a high value right?

LiroyvH

Aye indeed it should be, hence the question :)

That depends. 64M seems fine, but if you feel unsafe with it: you can lower it. I'd recommend at least 32M these days.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Ali_

Thank you kindly.  Site's been running nicely since.  I need to make some tweaks to apache's conf, but I'll start a new thread for that.

LiroyvH

((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Advertisement: