Skip to content

Instantly share code, notes, and snippets.

View AddoSolutions's full-sized avatar

Nick Artman AddoSolutions

View GitHub Profile
@taterbase
taterbase / upload.php
Created May 13, 2012 15:03
Simple file upload in php
<!DOCTYPE html>
<html>
<head>
<title>Upload your files</title>
</head>
<body>
<form enctype="multipart/form-data" action="upload.php" method="POST">
<p>Upload your file</p>
<input type="file" name="uploaded_file"></input><br />
<input type="submit" value="Upload"></input>
@peterdietz
peterdietz / fix-oscommerce-import-to-magento.diff
Created May 9, 2012 02:51
The Magento oscommerce-migration-tool is broken and needs to be manually patched to successfully import. This is the changes I had to do (picked it up from forum posts) to get the import to work. Also, make sure all products have images, and none of your
diff --git a/app/code/core/Mage/Oscommerce/Block/Adminhtml/Import/Run.php b/app/code/core/Mage/Oscommerce/Block/Adminhtml/Import/Run.php
index 4b5e822..7d46a2a 100644
--- a/app/code/core/Mage/Oscommerce/Block/Adminhtml/Import/Run.php
+++ b/app/code/core/Mage/Oscommerce/Block/Adminhtml/Import/Run.php
@@ -158,7 +158,7 @@ function sendImportData(data) {
new Ajax.Request("'.$this->getUrl('*/*/batchRun').'", {
- method: "post",
+ method: "get",