Topic: File attachment extension doesn't work

I've installed the file attachment extension, but it only works for small files (like images).

I went into the admin panel and changed the max file size in group permissions (I could only do this for member and moderator though, since the admin group is not possible to edit). It was 2 000 000 bytes, and first I changed it to 20 000 000 then 9 000 000 (my file is 6MB...) and I get this message no matter what:


Warning! The following errors must be corrected before your message can be posted:

    * The selected file was too large to upload. The server didn't allow the upload.



Can anyone help me? hmm

Re: File attachment extension doesn't work

Funny, I just asked the same question. smile Luckily Slavok gave me a hint and I found the rest. The post is here:

http://punbb.informer.com/forums/post/135257/#p135257

The problem is the server, and not PunBB. I was running my own server and although I could upload files of any size using FTP (for example), PunBB uses php which has it's own limiting file called php.ini. On a Linux server it is probably in /etc/php5/apache2. I found a default of only 2M so I put it up to a more reasonable 200M. Depending on the forum usage, I'd be careful though. On a commercial server you may be able to find a setting in your panel. Otherwise you'll have to ask your sysadmin.

Re: File attachment extension doesn't work

I was not able to find php.ini anywhere... am I supposed to make it myself if it doesn't excist?

I could neither find any options in the CP of my webhost...

help

Re: File attachment extension doesn't work

Bellic wrote:

I was not able to find php.ini anywhere... am I supposed to make it myself if it doesn't excist?

I could neither find any options in the CP of my webhost...

help

It looks like you didn't read the link in the last post. smile The file is in /etc/php5/apache2, at least on a regular Ubuntu server. Probably very similar on others. It is part of the server installation so you don't need to create it.

However, the reason the defaults were low on my installation, is because I was using the default installation. Since you are using a webhost, you will likely NOT have access to that file.

Did you get the same error message that I mentioned above? AFAIK that only comes from the server, but check the allowable file sizes in your PunBB installation. If those are suitable then perhaps you can convince your webhost to change their settings.

Re: File attachment extension doesn't work

Why would you say I didn't read the link in your post? I read everything, and I've looked everywhere in my File Manager with no luck. There was no /etc folder, neither anything similiar, I've installed the forum in my root directory and all I could find there was PunBB folders/files.

I got the same error message as you. I don't know what you mean by "check the allowable file sizes in your PunBB installation", but I did try to change settings in the admin panel as mentioned in my first post.

Do I need to contact my webhost to change the setting, or do I have some other options? There's tons of settings in the webhost CP but I'm not sure what to look for... I did find the htacces file, but that's probably not what I'm looking for, right?

Re: File attachment extension doesn't work

Bellic wrote:

Why would you say I didn't read the link in your post? I read everything, and I've looked everywhere in my File Manager with no luck.

Sorry if that sounded a bit rude. smile What I am referring to is a server, not the client. I presume that if you can run it from your root directory, then you have some kind of server installed. In that case you must have php and presumably the relevant file somewhere. Since you don't have a /etc directory then I have no idea where to look. I guess that without /etc you could be running Windows and that would be out of my depth.

I got the same error message as you. I don't know what you mean by "check the allowable file sizes in your PunBB installation", but I did try to change settings in the admin panel as mentioned in my first post.

Sorry again, yes those are the setting in the admin panel. In my case that turned out to not be the problem and the message was caused by the server limit.

Do I need to contact my webhost to change the setting, or do I have some other options? There's tons of settings in the webhost CP but I'm not sure what to look for... I did find the htacces file, but that's probably not what I'm looking for, right?

I don't know what is in your webhost CP but if you can't find anything that sounds relevant, then I guess you need to do something else. I don't have a lot of experience with it but I think that you got it right when you mention the htaccess file. I'm aware of it but haven't needed to play with it. I looked around and found this link: http://roshanbh.com.np/2008/01/uploadin … n-php.html That looks pretty hopeful to me. I'm sure you can find much more information on the topic.

Re: File attachment extension doesn't work

Bellic wrote:

Do I need to contact my webhost to change the setting, or do I have some other options? There's tons of settings in the webhost CP but I'm not sure what to look for... I did find the htacces file, but that's probably not what I'm looking for, right?

I think the easiest way is to contact the support of your host, they should be able to help you with settings.