Attatchments

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Attatchments

Post by antonio_424 » Fri Aug 04, 2006 5:51 pm

How can I make the attatchment size greater?

User avatar
robertmf
Registered User
Posts: 52
Joined: Wed Jul 23, 2003 5:20 pm
Location: In PA, 55 min. via commuter RR outside Filthadelphia
Contact:

Re: Attatchments

Post by robertmf » Fri Aug 04, 2006 6:10 pm

antonio_424 wrote: How can I make the attatchment size greater?


ACP -> [BOARD CONFIGURATION] -> [ATTACHMENT SETTINGS]

antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Re: Attatchments

Post by antonio_424 » Fri Aug 04, 2006 6:15 pm

Hmm......well I changed that already once before.....

Well it gives me an error that the limit is still 2MB and that it is set in the php.ini file I guess... :?

Hmm.....anyone know where that specific file is lol

code reader
Registered User
Posts: 653
Joined: Wed Sep 21, 2005 3:01 pm

Re: Attatchments

Post by code reader » Fri Aug 04, 2006 6:36 pm

you want to have a file called phpinfo.php (well, the file name is not that important) which contains the following code:

Code: Select all

<?php phpinfo(); ?>
create this file, and load it to your browser. look for:
Configuration File (php.ini) Path
upload_max_filesize
and
post_max_size

it is a little odd tidbit of information that requires some digging in the documentation, but the maximum possible file upload size is the smaller of the two values: "upload_max_filesize", and "post_max_size", so you want to increase both of them.

note that after changing the values in php.ini, you will need to tell php to reload it. there are several ways of doing it, but maybe the simplest one is to restart the http server.
hope it helps.

antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Re: Attatchments

Post by antonio_424 » Fri Aug 04, 2006 6:52 pm

Thanks for the help man! :)

What sucks is I probably won't raise it lol Too bad I can't change it using the forum ACP :(

code reader
Registered User
Posts: 653
Joined: Wed Sep 21, 2005 3:01 pm

Re: Attatchments

Post by code reader » Fri Aug 04, 2006 7:04 pm

some more digging:
the default value for post_max_size is 8M, the default for upload_max_filesize is 2M.
both of these values can be changed per directory, via .htaccess (providing that the global AllowOverride is on).
neither of them can be changed via ini_set() call.

asmith3006
Registered User
Posts: 136
Joined: Mon Feb 07, 2005 5:09 pm

Re: Attatchments

Post by asmith3006 » Fri Aug 04, 2006 8:00 pm

code reader wrote: changed per directory, via .htaccess (providing that the global AllowOverride is on).
neither of them can be changed via ini_set() call.
And assuming you're using Apache....

You don't need to make a phpinfo() file, there's one in the ACP already. Can't remember where, but it's just a link you click.

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Attatchments

Post by Highway of Life » Sat Aug 05, 2006 7:58 am

The 2MB is an Apache limit, you would have to change it Apache side, if it won't allow you to change it via .htaccess

Some servers have different limits, for instance, I set mine just a tad higher to allow bigger download files to be uploaded.
Image

User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany
Contact:

Re: Attatchments

Post by naderman » Sat Aug 05, 2006 12:36 pm

No the 2MB limit is normally a limit set in php.ini, and not in the apache configuration.

User avatar
Chris Archer
Registered User
Posts: 27
Joined: Fri Apr 07, 2006 7:51 am
Location: Russian Federation
Contact:

Re: Attatchments

Post by Chris Archer » Sat Aug 05, 2006 1:56 pm

You can change PHP settings via .htaccess if your apache has mod_php or mod_suphp installed.
The mirror never sees itself.
The reflection never is itself.

Post Reply