Codeigniter File Upload Class provide Many Settings.You can set various
preferences, restricting the type and size of the files.
- Allow Type
 
- Max Height
 
- Max Width
 
- Max Size
 
- Validation
 
- etc...
 
Creating the Upload Form
Using a text editor, create a form called upload_form.php.  In it, place this code and save it to your applications/views/
folder:
The Success Page
Using a text editor, create a form called upload_success.php.
In it, place this code and save it to your applications/views/ folder:
The Controller
Using a text editor, create a controller called upload.php.  In it, place this code and save it to your applications/controllers/
folder:
The Upload Folder
You'll need a destination folder for your uploaded images.  Create a folder at the root of your CodeIgniter installation called
uploads and set its file permissions to 777.
 
No comments:
Post a Comment
Thanks....