-
Notifications
You must be signed in to change notification settings - Fork 11
File Uploading Library
Luis Felipe Perez edited this page Jan 21, 2019
·
1 revision
Official Codeginiter documentation file upload library reference
Creates a base config array for file uploading.
Trigger: ciupconf
Results:
$conf['upload_path'] = '/uploads/';
$conf['allowed_types'] = 'gif|jpg|png';
$conf['file_name'] = '';
$conf['overwrite'] = FALSE;
$conf['max_size'] = 0;
$conf['max_width'] = 0;
$conf['max_height'] = 0;
$conf['encrypt_name'] = FALSE;
Trigger: ciupdata
Results: $var = $this->upload->data();
Trigger: ciupdisplay
Results: $this->upload->display_errors('<p>', '</p>');
Trigger: ciupdo
Results: $this->upload->do_upload($field_name);