在php中上传大文件时出现内部服务器错误
I'm using codeIgniter and I'm getting internal server error when trying to upload large files (might be 1Mb and up) The file upload script is working because it uploads to the folder in the server. But saving the file into the database it doesn't work anymore. I've already tried changing the following but still doesn't work:
php.ini
- post_max_size = 50M
- upload_max_filesize = 20M
my.ini
- max_allowed_packet = 2048M
- max_execution_time = 150
Where else do I have to check to ensure that the file upload to the database works.
我正在使用codeIgniter,我在尝试上传大文件时遇到内部服务器错误(可能是1Mb和 up) 文件上传脚本正在运行,因为它上传到服务器中的文件夹。 但是将文件保存到数据库中它不再起作用了。 我已经尝试更改以下内容但仍无效: p>
php.ini strong> p>
my.ini strong> p>
我还需要检查其他地方 确保上传到数据库的文件有效。 p>
div> post_max_size = 50M li>
Save the files do the directory, not on the database. You might want to save the path though in the databse.
If you want to know WHY, here are some previous post you should check.
Restart your apache server and try again.
I think think you should save files to Database ..but if you insist try NoSQL
Solutions instead .. such as MongoDB
.. its faster and better