Magento’s default product upload feature could use some improvement. Like others you probably have product images that have additional views or images, but cannot upload them via csv file. Below is a quick solution to this problem. Note that this solution edits a core file, so when you upgrade you will lose this feature. An alternative to using this solution would be to create a module outside the Magento core.

The file that we need to edit is located at: “app/code/core/mage/catalog/model/convert/adapter/product.php”

1. Look for the following snippet of code(Should be on line 773):


$addedFilesCorrespondence = $mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes(
  $product,
  $arrayToMassAdd, Mage::getBaseDir('media') . DS . 'import',
  false,
  false
);

2. Add this code right below that.

if (isset($importData['media_gallery']) && !empty($importData['media_gallery'])) {
  $x = explode(',', $importData['media_gallery']);
  foreach ($x as $file) {
    $imagesToAdd[] = array('file' => trim($file));
  }
  $mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes(
    $product,
    $imagesToAdd, Mage::getBaseDir('media') . DS . 'import',
    false,
    false
  );
}

3. Now add a column with a header of “media_gallery” in your product import csv.

You can place your additional product images in that column. If you have multiple additional images you can separate them with commas. Hope this helped you and saved you from a big headache.