File Upload in Product Custom Option

Posted . Visible to the public.

Each uploaded file is processed here:
Mage_Catalog_Model_Product_Option_Type_File::_validateUploadedFile()

To see the uploaded files:

$result['$_FILES'] = $_FILES;   
foreach ($_FILES as $key=>$file) {
   $result[$key] = is_uploaded_file($file['tmp_name']);
}
return  Mage::helper('clog')->_echo($result); 

Exception

exception 'Zend_File_Transfer_Exception' with message 'The file transfer adapter can not find "options_808_file"' in ../lib/Zend/File/Transfer/Adapter/Abstract.php:1503

The exception was due to missing setOption() in xxxxx_Emgs_Model_Catalog_Product_Option_Type_File

kiatng
Last edit
kiatng
Posted by kiatng to OpenMage (2016-11-21 11:15)