The file upload class and CI's image class

Now we are using those two libraries to add some cool functionalities to our website monitoring tool. Among all the data we have collected for our sites, it would be very helpful to have an image of the site itself. This will allow us to have a list of sites with a thumbnail helping us recognize the site very easily.

Our first step will be to create a folder, where we can keep the uploaded files. These may be text, images, or more exotic file types such as MP3 audio or MPEG video. Uploading is a more complex process than the file downloads we just discussed, but CI's upload class takes care of most of the work for you. It also looks after some of the security issues. The folder must be set with the correct ...

Get CodeIgniter 1.7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.