codeigniter,
php
How to Upload files in Codeigniter
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.
0 comments