Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: awe32 on November 26, 2008, 01:53:39 AM

Title: How to upload large attachments?
Post by: awe32 on November 26, 2008, 01:53:39 AM
I'm using linux hosting and I want to enable large files (100m) to use in the post attachment.
It seems i have a problem with my database or hosting, the "maxfilesize" in the smf setting is ok.
How can i do that?
Thanks
Title: Re: How to upload large attachments?
Post by: insanehsp on November 26, 2008, 02:08:51 AM
You have to change the php.ini for this - That means you have to use a a server with root access but for such big uploads, it´s always better to use CGI.
Title: Re: How to upload large attachments?
Post by: pooya on November 26, 2008, 02:27:22 AM
How do we use cgi ? i too have a limit of 2mb from host.
Title: Re: How to upload large attachments?
Post by: insanehsp on November 26, 2008, 02:44:30 AM
You have to contact your host or you have to look in the details from your host, if he support this. Most provider have decreased cgi-options to protect for overloading.
Title: Re: How to upload large attachments?
Post by: awe32 on November 26, 2008, 02:52:19 AM
could some please find us a solution? maybe an uploading applet or something.
thanks
Title: Re: How to upload large attachments?
Post by: insanehsp on November 26, 2008, 03:26:06 AM
There is no solution, if you can´t access the php.ini

So you have to go other ways: Upload files on a host like Rapidshare.com or make FTP-Accounts for your Boarduser.....
Title: Re: How to upload large attachments?
Post by: N3RVE on December 23, 2008, 01:50:48 PM
Quote from: insanehsp on November 26, 2008, 03:26:06 AM
So you have to go other ways: Upload files on a host like Rapidshare.com or make FTP-Accounts for your Boardusers.....

Correct, alternatively, you can pay for a dedicated plan and conviniently change php.ini settings as required since you'd be in control of a Virtual private server.

You can also be on a shared server plan and have the ability to create your own php.ini file to override whatever's in the system file. You will need to talk with your host to find out the details on how to do this. For example, on some systems, you have to put in a line (suPHP_ConfigPath) in .htaccess to tell PHP where to find php.ini.

-[n3rve]