In lesson nine of our CodeIgniter series, we’ll build a small image gallery that allows you to upload files, and automatically create thumbnails.
Catch Up
- Day 1: Getting Started With the Framework
- Day 2: Database Selecting Methods
- Day 3: Sending Emails
- Day 4: Newsletter Signup
- Day 5: CRUD
- Day 6: Login
- Day 7: Pagination
- Day 8: AJAX
- Day 9: File Uploading and Image Manipulation
Day 9: File Uploading and Image Manipulation
Other Viewing Options
- Follow us on Twitter, or subscribe to the Nettuts+ RSS Feed for more daily web development tuts and articles.








jQuery Lightbox Evolution only $12.00
Events Calendar Pro - Wordpr ... only $30.00 
sir, i wanted to know if you can create 2 thumbnail with different height and width with ci. i have tried to do so by creating 2 different functions for thumbnail generation and then call it in main upload function but it didn’t work, can u plz provide the easy way for doing it.
is there any helper class from codeigniter to upload image via URL?
It would be great to see a multiple file upload example. Even the CI docs don’t adequately show this. Nice tutorial.
download video link is dead any way you guys can get it going again?
Where a can find the sql file?
for create tables…
Thanks
the link is broken.. i would like to download it because my internet connection its not so great.. plz.
Quick bit of digging around got me the proper download link:
http://blip.tv/file/get/NETTUTS-CodeIgniterFromScratchDay9668.flv
Not Found
The requested URL /ci_series/gallery was not found on this server.
I get this error. can anybody help me?
Machhindra,
Check your htaccess that came with your CI source files for this tut. Chances are you renamed the folder the application is in, and that htaccess file is still referencing what the author named it.
Hi Adam,
I have same error with Machhindra.
Also, I have checked the folder name. However, I cannot correct it.
Is there any setting to use .htaccess file based on Windows?
Hi everyone,
I have same error with Machhindra.
Also, I have checked the folder name. However, I cannot correct it.
Is there any setting to use .htaccess file based on Windows?
Have a good day!!!
Sorry guys!
I solved the problem.
I had to change httpd.conf file.
Hi,
I’ve been researching on how to upload images on the database then view In Codeigniter
Hi, Need to vew my table record from the dropdown list, any idea?
I’ve enjoyed the series so far, but I have a question about this one.
It seems that when I upload a picture, it one doesn’t work, and two when it redirects back to the gallery, it says link broken. It does it with both the code that I typed while going through the tutorial, and also the downloaded source code.
Any thoughts?
Hi all,
Does this image manipulation library supports animation gifs and thumbnails with animation?
Thanks a lot.