O'Reilly logo

CodeIgniter 1.7 Professional Development by Adam Griffiths

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File Uploading Class

The File Uploading Class provides a simple way to upload files to your web server. It lets you easily change the types of files that can be uploaded and the maximum file size, and also gives you a few different preferences for file names.

Uploading files using this class is very simple, and usually the process of uploading a file will look something like this:

  • The user is shown a form, and selects a file to upload
  • The file is then validated to ensure that it meets your preferences
  • If the file meets your preferences, then the file will be uploaded to the directory that you specify
  • The user will be shown either a success message or an error message if the file doesn't meet the preferences that you set

Before we can create our Upload ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required