Our blog

 

Magento Custom Options Multiple File Upload Problem + Solution

If your Magento custom options with multiple file uploads isn't working properly, its because of a bug in the core Magento code.

You can either edit the core file
Open magento\app\code\core\Mage\Catalog\Model\Product\Option\Type\File.php and change:
at line 145

PHP:
  1. if (!$upload->receive()) {

To:

PHP:
  1. if (!$upload->receive($file)) {

Or alternatively I have put together a small module to override this bit of code. If you want it drop me a comment and I will package it up.

More Reading:

3 Comments

Krystal
November 25th, 2009

Hi, I wanted to write and thank you for this quick little fix. It worked beautifully and easily. I'm by no means experienced in code, and a lot of the things I've tried to fix from help on the Magento forum have not been quite so easy. Thanks for the help!

 

Dan
November 28th, 2009

Does exactly what it says on the tin; perfect!

Thanks for sharing this!

 

[...] This bug fix was kindly created by Edmonds Commerce, view the original post here: [...]

 

 

Leave a Reply