Simple 301 Redirects – Addon – Bulk Uploader - Version 1.0.2

Version Description

  • Addition of further mime types
Download this release

Release Info

Developer ashdurham
Plugin Icon 128x128 Simple 301 Redirects – Addon – Bulk Uploader
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. readme.txt +8 -2
  2. simple-301-bulk-uploader.php +11 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ashdurham
3
  Donate link: http://durham.net.au/donate/
4
  Tags: simple 301 redirects, bulk upload, csv, 301, redirects
5
  Requires at least: 3.0.1
6
- Tested up to: 3.6.1
7
- Stable tag: 1.0.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -68,6 +68,9 @@ Have a question thats not listed? Get support either on the support forums here
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 1.0.1 =
72
  * Update to uploader to read the file coming from a PC
73
 
@@ -76,6 +79,9 @@ Have a question thats not listed? Get support either on the support forums here
76
 
77
  == Upgrade Notice ==
78
 
 
 
 
79
  = 1.0.1 =
80
  * Update to uploader to read the file coming from a PC
81
 
3
  Donate link: http://durham.net.au/donate/
4
  Tags: simple 301 redirects, bulk upload, csv, 301, redirects
5
  Requires at least: 3.0.1
6
+ Tested up to: 3.7.1
7
+ Stable tag: 1.0.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.0.2 =
72
+ * Addition of further mime types
73
+
74
  = 1.0.1 =
75
  * Update to uploader to read the file coming from a PC
76
 
79
 
80
  == Upgrade Notice ==
81
 
82
+ = 1.0.2 =
83
+ * Addition of further mime types
84
+
85
  = 1.0.1 =
86
  * Update to uploader to read the file coming from a PC
87
 
simple-301-bulk-uploader.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple 301 Redirects - Addon - Bulk CSV Uploader
4
  Plugin URI: http://kingpro.me/plugins/support-plugins/simple-301-redirects-addon-bulk-csv-uploader
5
  Description: Adds the ability to upload a CSV to populate the Simple 301 Redirects plugin
6
- Version: 1.0.1
7
  Author: Ash Durham
8
  Author URI: http://durham.net.au/
9
  License: GPL2
@@ -95,7 +95,16 @@ if (!class_exists("Bulk301Uploader")) {
95
  $extension = end($temp);
96
  $report = '';
97
 
98
- if ((($data["type"] == "text/csv") || ($data["type"] == "application/vnd.ms-excel"))
 
 
 
 
 
 
 
 
 
99
  && ($data["size"] < 10000000)
100
  && in_array($extension, $allowedExts))
101
  {
3
  Plugin Name: Simple 301 Redirects - Addon - Bulk CSV Uploader
4
  Plugin URI: http://kingpro.me/plugins/support-plugins/simple-301-redirects-addon-bulk-csv-uploader
5
  Description: Adds the ability to upload a CSV to populate the Simple 301 Redirects plugin
6
+ Version: 1.0.2
7
  Author: Ash Durham
8
  Author URI: http://durham.net.au/
9
  License: GPL2
95
  $extension = end($temp);
96
  $report = '';
97
 
98
+ $mime_types = array(
99
+ 'application/csv',
100
+ 'application/excel',
101
+ 'application/vnd.ms-excel',
102
+ 'application/vnd.msexcel',
103
+ 'text/anytext',
104
+ 'text/comma-separated-values'
105
+ );
106
+
107
+ if (in_array($data["type"], $mime_types)
108
  && ($data["size"] < 10000000)
109
  && in_array($extension, $allowedExts))
110
  {