Multiple Image uploads in Magento
Posted: November, 30 2009As 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
- 22.07.09: How to reset Linux Firewall (0)
- 25.02.10: Linux CPU States and there meaning (0)
- 12.08.09: Magento Error: Please check for sufficient write file permissions [fixed] (0)
- 07.10.09: Magento Thank you for registering with Default Store View (0)
- 22.09.09: Reset Session storage options in Magento (0)







Comments RSS Feed




Neat, thanks for this; thought I was going to have to pay a developer to build this in!
Go to Top of the page