Wednesday, September 10, 2014

File uploading and Downloading using CodeIgniter

Upload and Download a File using CodeIgniter

Hello Friends,
          Today I'll tell you all how to implement File uploading and File downloading using CodeIgniter.

First will look into the File uploading section. 

File Uploading

First of all we have to create a folder call Uploads inside application folder.


Your upload file controller should have to be as follows.

  
Next create the interface inside application/view folder as mentioned below.


 Once you run the file here the output you get.



File Downloading


Once you upload the file here the way to download it.

First create the Download file Controller.




Then the download view File as follows.



Here the view you get when run the application.

For download method you can add parameter if you need according to your needs. I here implemented the very basic steps of downloading and uploading files.
 

 

No comments:

Post a Comment