Guest User

Untitled

a guest
Aug 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. How to use form validation with the file uploader to make sure a file is uploaded
  2. // The following are just examples from the documentation...
  3. $config['upload_path'] = './uploads/';
  4. $config['allowed_types'] = 'gif|jpg|png';
  5. $config['max_size'] = '100';
  6. $config['max_width'] = '1024';
  7. $config['max_height'] = '768';
  8. // ... other preferences as necessary
Add Comment
Please, Sign In to add comment