Q: How can I increase the max upload file size on a Blacknight Unix hosting plan, drupal says that it's currently just 2Mb?
A: Add a little php.ini file to your drupal root and add some lines to the root .htaccess file as follows:.
I am currently doing some web development for one of our Cork clients, the website in question hosts some audio files - the client can login and upload new files (via CCK file field). Some of the files are quite big, and when trying to increase the max allowed file size in the file field settings, I noticed that the max allowed upload size was capped by PHP at 2Mb. The site is hosted on a Blacknight Unix hosting plan.
My question is, where about in the .htaccess should i insert the above line? at the very top or somewhere else? please reply to crusader_123@hotmail.com
I don't think it really matters where the lines go, but just mak sure that they don't already exist! You could put them beside other similar php_ values if there are any...
Did you find this post helpful? If so, we'd love to hear from you in our comments! If you found it really useful we'd love a link from your Blog-Web Site, to us!
Hi,
you stated that to increase the file size, we need to insert the
php_value upload_max_filesize 10M
php_value post_max_size 20M
in the .htaccess file.
My question is, where about in the .htaccess should i insert the above line? at the very top or somewhere else? please reply to crusader_123@hotmail.com
thanks!