[eluser]chefnelone[/eluser]
Hello,
I need to do some change to the upload class to check on the uploaded image orientation.
I´d create the parameter:
Code:
function initialize($config = array())
{
$defaults = array(
'orientation' => 'landscape', // lanscape, portrait
.....
);
}
The class should check if the uploade image orientation match the preference, and if not should show the error with:
Code:
if ( ! $this->is_allowed_orientation())
{
$this->set_error('upload_invalid_orientation');
return FALSE;
}
But then I found complicate to make the rest...
This week I´ll be posting what I do to get some help
Thanks