*/ class Mage_Dataflow_Model_Convert_Iterator_Http extends Mage_Dataflow_Model_Convert_Adapter_Abstract { public function load() { if (!$_FILES) { ?>
File to upload:
setAllowedExtensions(array('csv','xml')); $path = Mage::app()->getConfig()->getTempVarDir().'/import/'; $uploader->save($path); if ($uploadFile = $uploader->getUploadedFileName()) { $fp = fopen($uploadFile, 'rb'); while ($row = fgetcsv($fp)) { } fclose($fp); } } return $this; } }