07-05-2012, 04:40 AM
[eluser]obay[/eluser]
The code Sinclair provides has a missing line (CI 2.1.0). Be sure to add this line before initialize() ends:
The file upload_lang.php should also be modified so as not to confuse the user. Add the text "or minimum":
The code Sinclair provides has a missing line (CI 2.1.0). Be sure to add this line before initialize() ends:
Code:
// if a file_name was provided in the config, use it instead of the user input
// supplied file name for all uploads until initialized again
$this->_file_name_override = $this->file_name;
The file upload_lang.php should also be modified so as not to confuse the user. Add the text "or minimum":
Code:
$lang['upload_invalid_dimensions'] = "The image you are attempting to upload exceedes the maximum or minimum height or width.";