Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/core/Mage/Catalog/Helper/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ public function validateUploadFile($filePath)
}

if ($imageInfo[0] > $maxDimension || $imageInfo[1] > $maxDimension) {
Mage::throwException($this->__('Disalollowed file format.'));
Mage::throwException($this->__('Disallowed file format.'));
}

$_processor = new Varien_Image($filePath);
Expand Down
11 changes: 10 additions & 1 deletion app/code/core/Mage/Uploader/Model/Config/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,23 @@ class Mage_Uploader_Model_Config_Uploader extends Mage_Uploader_Model_Config_Abs
*/
protected function _construct()
{
// Fix error where setting post_max_size or upload_max_filesize to 0
// causes the flow.js to make infinite chunks and crash the browser
$maxSize = $this->_getHelper()->getDataMaxSizeInBytes();

if ($maxSize === 0) {
$maxSize = PHP_INT_MAX;
}

$this
->setChunkSize($this->_getHelper()->getDataMaxSizeInBytes())
->setChunkSize($maxSize)
->setWithCredentials(false)
->setForceChunkSize(false)
->setQuery(array(
'form_key' => Mage::getSingleton('core/session')->getFormKey()
))
->setMethod(self::UPLOAD_TYPE)
->setSimultaneousUploads(1)
->setAllowDuplicateUploads(true)
->setPrioritizeFirstAndLastChunk(false)
->setTestChunks(self::TEST_CHUNKS)
Expand Down
2 changes: 0 additions & 2 deletions app/design/adminhtml/default/default/layout/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ Layout for editor element
<action method="addJs"><script>mage/adminhtml/variables.js</script></action>
<action method="addJs"><script>mage/adminhtml/wysiwyg/widget.js</script></action>
<action method="addJs"><name>lib/uploader/flow.min.js</name></action>
<action method="addJs"><name>lib/uploader/fusty-flow.js</name></action>
<action method="addJs"><name>lib/uploader/fusty-flow-factory.js</name></action>
<action method="addJs"><name>mage/adminhtml/uploader/instance.js</name></action>
<action method="addJs"><script>mage/adminhtml/browser.js</script></action>
<action method="addJs"><script>prototype/window.js</script></action>
Expand Down
2 changes: 1 addition & 1 deletion app/locale/en_US/Mage_Catalog.csv
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"Details","Details"
"Disabled","Disabled"
"Disallowed file type.","Disallowed file type."
"Disalollowed file format.","Disalollowed file format."
"Disallowed file format.","Disallowed file format."
"Display Actual Price","Display Actual Price"
"Display Page Control","Display Page Control"
"Display Price Interval as One Price","Display Price Interval as One Price"
Expand Down
Loading