forked from avstudnitz/AvS_FastSimpleImport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate refactoring in avstudnitz#393
- Loading branch information
Showing
2 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/app/code/community/AvS/FastSimpleImport/Model/Import/Uploader/Downloadable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class AvS_FastSimpleImport_Model_Import_Uploader_Downloadable extends Mage_ImportExport_Model_Import_Uploader | ||
{ | ||
|
||
// set this to an empty array, so that all mime types and file extensions are allowed | ||
protected $_allowedMimeTypes = array(); | ||
|
||
public function init() | ||
{ | ||
parent::init(); | ||
// we want to support any file type, so remove the image specific validators | ||
$this->removeValidateCallback('catalog_product_image'); | ||
$this->removeValidateCallback(Mage_Core_Model_File_Validator_Image::NAME); | ||
} | ||
} |