Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: dtm.exe - helmikuu 05, 2005, 10:47:47 IP

Otsikko: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 05, 2005, 10:47:47 IP
Whenever I or any other member of my forums ( www.closecombatsquad.com ) attempts to upload an attachment that is large (like 5MB), I get an error saying

LainaaYour attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.

I have checked permissions and all member groups can upload and view attachments.  I have also set attachement sizes to their maximums.  There is nothing I can find to explain this issue I'm experiencing.  Also, server space is unlimited.  Any fixes or suggestions?

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: Jeff Lewis - helmikuu 05, 2005, 11:07:36 IP
Hmm, this is also occuring here: http://www.simplemachines.org/community/index.php?topic=26924.0

Going to see if Unknown has seen it before.
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 05, 2005, 11:12:00 IP
Yea, thanks.  If anyone else has any ideas at all, please reply.  Thanks.

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 04:25:45 AP
Could you give a link to a phpinfo?  What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0)

-[Unknown]
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 11:11:00 AP
Here you go.

www.closecombatsquad.com/phpinfo.php

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: twinklewitch - helmikuu 07, 2005, 01:43:16 IP
I know this isn't my topic, but since I happen to have the same problem (and posted a topic about it a few days ago), I thought I'd post a link to my php info as well.

I've got both the attachment problem as well as the avatar problem (won't upload from a random computer AND won't use an avatar from an extern website) on both my forums.

http://www.theflyingdoctorsforum.nl/Forum/phpinfo.php
http://www.thepoolforum.com/yabbse/phpinfo.php
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 02:26:52 IP
Yea, no problem.  He can kill two birds with one stone  :P ;D

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 04:04:49 IP
upload_max_filesize is 2M in every phpinfo posted here.  That would be why larger files cannot be uploaded.  You'll either need the setting updated by your host to a higher value (2M is simply the default) or you may be able to raise it using .htaccess, like so:

php_value upload_max_filesize "16M"

Sorry, twinklewitch.  I used to be much faster, but the combination of increased usage of this forum and my increased workload has left me with many topics I still urgently need to get to.  I'm sorry that your topic, as well as countless (well, actually, about 12 pages of them) others, was as yet ignored.

I'll try to post more in your other topic.

-[Unknown]
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 04:13:33 IP
Lainaus käyttäjältä: [Unknown] - helmikuu 07, 2005, 04:04:49 IP
upload_max_filesize is 2M in every phpinfo posted here.  That would be why larger files cannot be uploaded.  You'll either need the setting updated by your host to a higher value (2M is simply the default) or you may be able to raise it using .htaccess, like so:

php_value upload_max_filesize "16M"

-[Unknown]

I opened the .htaccess file and there was nothing in there that said anything about uploading.

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 04:17:52 IP
Lainaus käyttäjältä: OIDanTheManIO - helmikuu 07, 2005, 04:13:33 IP
I opened the .htaccess file and there was nothing in there that said anything about uploading.

-Dan The Man

Sorry, I was unclear.  By default, your .htaccess file will either not exist, or not say anything about uploading - yes.  This information I am referencing comes from your php.ini file, which is a file you probably cannot access.  However, you can (depending on your host!) override the values in php.ini with your own, in .htaccess.  To override them, add the line I mentioned above.

Some hosts do not allow this.  Attempting to override will give you a big ugly 500 error in these cases.

-[Unknown]
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 04:28:12 IP
I do have access to all files on my server so I will attempt to change it and get back to you with my results.

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: twinklewitch - helmikuu 07, 2005, 04:35:20 IP
Lainaus käyttäjältä: [Unknown] - helmikuu 07, 2005, 04:04:49 IP
Sorry, twinklewitch. I used to be much faster, but the combination of increased usage of this forum and my increased workload has left me with many topics I still urgently need to get to. I'm sorry that your topic, as well as countless (well, actually, about 12 pages of them) others, was as yet ignored.

I'll try to post more in your other topic.

-[Unknown]

don't be sorry...all help is appreciated and I do know this is all free support :)
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: Ray™ - helmikuu 07, 2005, 04:50:14 IP
I was getting the same error also-- fixed by giving +r to winnt\temp file.
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 04:52:15 IP
Lainaus käyttäjältä: Ray - helmikuu 07, 2005, 04:50:14 IP
I was getting the same error also-- fixed by giving +r to winnt\temp file.

What now?

Also, [Unknown], I was unable to access my php.ini file :(  Do you have any idea where it could possibly be if my server uses cpanel?

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 04:56:20 IP
Lainaus käyttäjältä: OIDanTheManIO - helmikuu 07, 2005, 04:52:15 IP
Lainaus käyttäjältä: Ray - helmikuu 07, 2005, 04:50:14 IP
I was getting the same error also-- fixed by giving +r to winnt\temp file.

What now?

Also, [Unknown], I was unable to access my php.ini file :(  Do you have any idea where it could possibly be if my server uses cpanel?

-Dan The Man

Most likely, it's in /etc/php.ini.  Or maybe files in /etc/php.d/.  You'll need to be root.  You can also try:

# locate php.ini

Which should work, at least, on cPanel hosts - I believe.

-[Unknown]
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 05:07:40 IP
Lainaus käyttäjältä: [Unknown] - helmikuu 07, 2005, 04:56:20 IP
Lainaus käyttäjältä: OIDanTheManIO - helmikuu 07, 2005, 04:52:15 IP
Lainaus käyttäjältä: Ray - helmikuu 07, 2005, 04:50:14 IP
I was getting the same error also-- fixed by giving +r to winnt\temp file.

What now?

Also, [Unknown], I was unable to access my php.ini file :(  Do you have any idea where it could possibly be if my server uses cpanel?

-Dan The Man

Most likely, it's in /etc/php.ini.  Or maybe files in /etc/php.d/.  You'll need to be root.  You can also try:

# locate php.ini

Which should work, at least, on cPanel hosts - I believe.

-[Unknown]

Thanks, I'll look into that.

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 05:18:57 IP
I should also mention - you may wish to change, as well, max_input_time and post_max_size as well.

-[Unknown]
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: dtm.exe - helmikuu 07, 2005, 05:33:02 IP
LainaaMost likely, it's in /etc/php.ini.  Or maybe files in /etc/php.d/.  You'll need to be root.  You can also try:

# locate php.ini

Which should work, at least, on cPanel hosts - I believe.

-[Unknown]

Looked everywhere, couldn't find anything in the etc folder :(

-Dan The Man
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 05:46:38 IP
Forgive me, I'm a moron.  Its path is shown in the phpinfo:

/usr/local/Zend/etc/php.ini

-[Unknown]
Otsikko: Re: Error When Uploading Attachments
Kirjoitti: archiebald - helmikuu 07, 2005, 10:06:20 IP
This topic may be of some help.

http://www.simplemachines.org/community/index.php?topic=26887.new;topicseen#new

and this link

http://www.squirrelmail.org/wiki/en_US/AttachmentSize

Archie