hi! frds
i am working on a project in which user can upload the file to database
but it only uploads the file upto a limit of 4mb …
how to increase the limit of size for uploaded file…
help plz…
hi! frds
i am working on a project in which user can upload the file to database
but it only uploads the file upto a limit of 4mb …
how to increase the limit of size for uploaded file…
help plz…
Upload size is either set to a maximum in your upload code or in the PHP.ini file in your server.
If you look at your upload code it will be easy to see if you have set a limit. If so, just change it
in that code to the higher amount. If not set there, then it will be set in the php.ini or .htaccess files.
These are usually placed in the root directory of the site, but, sometime elsewhere.
To look at the PHP.INI file, look in your server’s root folder. Inside that file you will find something like:
upload_max_filesize = 2M
post_max_size = 2M
You would change these to your new size. Going too high can cause server issues.
One other place is your .htaccess file in your root directory. (Can actually be in other folder, too.)
php_value upload_max_filesize 10M
php_value post_max_size 10M
If these are not in the .htaccess file, do not add them. Use the other versions first.
Hope that helps…