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
-
if (!$upload->receive()) {
To:
-
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
|
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! |
|
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? |
|
Hi, I need multiple file upload in magento in my custom module |
|
multiple file upload in magento is possible |
|
how can i upload Custom Product Options one time all ? |
|
I need to allow users to upload multiple jpeg files at once |
RSS Feed
Krystal
November 25th, 2009