Part of the EllisLab Network
   
 
User Guide: File Uploading Class
Posted: 08 November 2006 11:04 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  03-12-2006

Hello, there is a mistake in User Guide - http://www.codeigniter.com/user_guide/libraries/file_uploading.html

There is this example:

$this->load->library('upload');
    
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size']    = '100';
$config['max_width']  = '1024';
$config['max_height']  = '768';
        
$this->load->library('upload', $config);

but it should be:

$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size']    = '100';
$config['max_width']  = '1024';
$config['max_height']  = '768';
        
$this->load->library('upload', $config);

The first code setup only the default configuration.

Just a little thing, but I was doing copy&paste;)

 Signature 


Jan Onesork
Czech SEO consultant

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64453 Total Logged-in Users: 25
Total Topics: 80959 Total Anonymous Users: 1
Total Replies: 435684 Total Guests: 184
Total Posts: 516643    
Members ( View Memberlist )