| File Upload Problem in Joomla | ![]() |
![]() |
| Written by Administrator |
|
Using Joomla 1.5.10. When I try to upload any files larger than approximately 8MB through the media manager, I get an error: Notice Please input a file for upload If I use the Joomla Content Editor to handle attachments, the error becomes "Invalid Token".
Solution: Modify the php.ini, ssh and login as "root" vi /usr/local/lib/php.ini Now change the line that says: post_max_size = 8M to post_max_size = 20M If you want it to be bigger than 20M you will also have to adjust upload_max_filesize to match: upload_max_filesize = 20M If you make it really large you may have to increase max_execution_time and the memory_limit as well, but that will take some experimentation to properly suit your needs. In the end, you will have restart the web server to make these changes take effect: sudo /etc/init.d/apache2 restart Also, you may have to adjust something in Joomla itself. If the above changes don't work for you, log into Joomla as an administrator, go to "Global Configuration", go to the "System" tab, and under "Media Settings" change "Maximum Size" to match your above settings. |
| Last Update (週二, 09 六月 2009) |

