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:

8 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: [...]

 

Geoff
March 24th, 2010

Does this change it so you can export/import custom options on simple products?

 

Rajesh
April 5th, 2010

Hi, I need multiple file upload in magento in my custom module

 

multiple file upload in magento is possible

 

lucas
May 21st, 2010

how can i upload Custom Product Options one time all ?
thanks for your help .

 

Jeff MacDougall
July 8th, 2010

I need to allow users to upload multiple jpeg files at once

 

 

Leave a Reply