Hi,
So at this moment I'll suggest use to use the "maxSize" option of the javascript upload library.
First, you will have to edit the file "administrator/components/com_hikashop/types/uploader.php" and replace
$options['maxSize'] = min(hikashop_bytes(ini_get('upload_max_filesize')), hikashop_bytes(ini_get('post_max_size')));
By
$maxSize = min(hikashop_bytes(ini_get('upload_max_filesize')), hikashop_bytes(ini_get('post_max_size')));
if(empty($options['maxSize'])) {
$options['maxSize'] = $maxSize;
} else {
$size = (int)$options['maxSize'];
if((''.$size) != $options['maxSize'])
$size = hikashop_bytes($options['maxSize']);
$options['maxSize'] = min($size, $maxSize);
}
And then, in the view "productmarket | form_image", you can replace
By
'ajax' => $ajax,
'maxSize' => '2M'
);
It should give to the javascript library a size limitation for the image upload of 2MB (instead of reading the maximum upload size that your server can accept).
Regards,