voodish logo
Skip to: Content | Navigation | Site map

Multiple Image uploads in Magento

  Posted: November, 30 2009

As standard, Magento will not allow two uploads via the custom options panel of a product, simply returning an error in the cart. Here we explain a simple method of allowing this functionality, with just one line of code.

Navigate to:

Magento_Folder/app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php

Around Line 145

if (!$upload->receive()) {

Change to:

if (!$upload->receive($file)) {

Working Example

This quickly solved our dual image upload problem in Magento, see it working on
Your Image On…

This bug fix was kindly posted by Edmonds here

Related Articles

Comments RSS Feed

2 Trackbacks/Pingbacks

  1. Pingback: Two image uploads with custom options in Magento, Voodish Articles. | Magento News on December 1, 2009
  2. Pingback: Twitter Trackbacks for Image uploads with custom options in Magento, Voodish Articles. [voodish.co.uk] on Topsy.com on December 1, 2009

1 Comments

  1. webbywoo December 1, 2009

    Neat, thanks for this; thought I was going to have to pay a developer to build this in! :)

  2. Go to Top of the page

Leave a comment