How Can I Upload File Greater Than 2MB [PHP]

Status
Not open for further replies.

Ahmed Nawaz

OMG Member
Nov 25, 2010
24
0
55
32
My Server Does Not Allow Upload A File Greater Than 2MB From PHP Else It Allows Unlimited File Size Unlimited Files Size...
I Am Using A File Uploading Script & By From That Script I Can Upload Any Size File
But From Xenforo I Can upload max 2mb file...
Is There any Mod Which Allow Me To Upload A File Greater Than 2mb without changing Server PHP Config File???
 

Ahmed Nawaz

OMG Member
Nov 25, 2010
24
0
55
32
Try making an .htaccess file with:
Code:
php_value upload_max_filesize 10M
And then check with phpinfo if it has changed.
I Have Tried But Following Error..
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,  webmaster@s.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
.htaccess contains
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
php_value upload_max_filesize 10M
 
Status
Not open for further replies.