If you use Big Image :
----------------------
just below this :
----------------------
// Image champ -> products_image
if (isset($_FILES['products_image']['name']) && !empty($_FILES['products_image']['name'])) {
$products_image = new upload('products_image');
$products_image->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_image->parse() && $products_image->save()) {
$products_image_name = $products_image->filename;
//
$sql_data_array['products_image'] = $products_image_name;
}
}
----------------------
add this :
----------------------
// Image champ -> products_bimage
if (isset($_FILES['products_bimage']['name']) && !empty($_FILES['products_bimage']['name'])) {
$products_bimage = new upload('products_bimage');
$products_bimage->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_bimage->parse() && $products_bimage->save()) {
$products_bimage_name = $products_bimage->filename;
//
$sql_data_array['products_bimage'] = $products_bimage_name;
}
}
----------------------
No more file in attachment.
Enjoy !
More...





LinkBack URL
About LinkBacks









Bookmarks