• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Uploading Library. Error if image < 300 pixels?

#14
[eluser]obay[/eluser]
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.";


Messages In This Thread
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-18-2010, 12:30 PM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-18-2010, 05:25 PM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-18-2010, 06:38 PM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-18-2010, 09:59 PM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-19-2010, 05:42 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-28-2010, 11:19 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-28-2010, 11:33 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-28-2010, 11:55 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-28-2010, 02:25 PM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 08-29-2010, 04:29 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 09-25-2010, 01:00 PM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 09-30-2010, 03:57 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 09-30-2010, 04:10 AM
File Uploading Library. Error if image < 300 pixels? - by El Forum - 07-05-2012, 04:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.