Breaking News
Loading...
,

How to Upload files in Codeigniter

Share on Google Plus

How to Upload files in Codeigniter


For uploading a file using codeigniter create a simple HTML file which should contains a file input control and submit button with a form.
Here is the code:
REMEMBER : Use form_open_multipart() if you are using any uploading in the form.
Your controller will hold a simple function which will set the config array for defining the uploading path, allowed types, max size and height.
If files that are being uploaded are big in size then you need to increase Max file uploading size in php.ini on your server.

You Might Also Like

0 comments

About me


Like us on Facebook