Picture upload in CodeIgniter | Image upload in CodeIgniter | Mini project with file Picture upload



Picture upload in CodeIgniter Tutorial with source code and example
How to Upload file & image in codeigniter
There are 3 Steps to Upload image in Codeigniter.
Step 1 :Folder Creation
First We need to Create a folder which form the basis of the upload process.
This folder is the destination folder where image will store after Uploading .
Go to the root of the CI installation -Create a folder named “upload”. All Imags will Store inside “Upload ” Folder.
Step 2 :Create Controller
Second Step is Create a controller file and save inside Controller folder. Name of the Controller is “Article_Controller.php”.
In this Controller, firstl I will load two “library” and Second I will load a “Form helper” class, with the following code.

Step 3 :View
For the Structure of image upload, I have created two files that is stored inside Ci root view folder.
First file is to upload image and Second file is display Success message.
Structure of “form.php” this for uploading a image.
#PictureuploadinCodeIgniter
#FileUpload
#ImageUpload
#CodeIgniter

Download From Github : https://github.com/amirul1000/picture-upload-in-CodeIgniter

Subscribe us on Channel : https://www.youtube.com/channel/UC2Q4oWfoMQzi6AES8Vb2vQw?view_as=subscriber

source

Reply


Build A Site Info