I'm again. I said working well because on that time I am using admin account that is why the upload successfully even the size of the image exceed the limit. I thought I am using normal account.
Normal user still unable to upload image when the size exceeds the limitation. Perhaps, I need to set the size of the image in KB at very high limit so that normal user will able to upload their images?! Also affected from MOD that I had installed; Annotation, Upload Info(On upload & In detail page) ?
These an error message appeared after trying to upload image exceeds the size limit.
Error uploading image file:
blue_season-1280x1024.jpg: Image size invalid
Fyi, auto resize is working very well both user groups.
Here are my upload.php scripts at Step 2.x function Upload() {
global $config, $lang;
$this->max_width['thumb'] = $config['max_thumb_width'];
$this->max_width['media'] = $config['max_image_width'];
$this->max_height['thumb'] = $config['max_thumb_height'];
$this->max_height['media'] = $config['max_image_height'];
$this->auto_image['media'] = $config['auto_image'];
$this->max_size['thumb'] = $config['max_thumb_size'] * 1024;
$this->max_size['media'] = $config['max_media_size'] * 1024;
$this->upload_mode = $config['upload_mode'];
$this->lang = $lang;
$this->set_allowed_filetypes();
}
function check_image_size() {
$this->image_size = @getimagesize($this->upload_file);
if ($this->auto_image[$this->image_type]) {
return 1; //auto image is on, don't need check for anything else.
}
Thank you.