Wern Ancheta
Wern Ancheta

Reputation: 23337

Internal server error when uploading large files in 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

my.ini

Where else do I have to check to ensure that the file upload to the database works.

Upvotes: 0

Views: 1302

Answers (3)

Baba
Baba

Reputation: 95161

I think think you should save files to Database ..but if you insist try NoSQL Solutions instead .. such as MongoDB .. its faster and better

Upvotes: 0

Bibin Velayudhan
Bibin Velayudhan

Reputation: 3103

Restart your apache server and try again.

Upvotes: 0

Starx
Starx

Reputation: 79069

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.

  1. Storing Documents as Blobs in a Database - Any disadvantages?
  2. Storing Images in DB - Yea or Nay?

Upvotes: 2

Related Questions