Version Description
- correction of bug to allow uploadpath to receive userdata as parameter
Download this release
Release Info
Developer | nickboss |
Plugin | WordPress File Upload |
Version | 2.4.3 |
Comparing to | |
See all releases |
Code changes from version 2.4.2 to 2.4.3
- lib/wfu_processfiles.php +10 -0
- readme.txt +7 -1
- wordpress_file_upload.php +2 -2
lib/wfu_processfiles.php
CHANGED
@@ -73,6 +73,16 @@ function wfu_process_files($params, $method) {
|
|
73 |
else $files_count = 0;
|
74 |
$params_output_array["general"]['files_count'] = $files_count;
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/* append subfolder name to upload path */
|
77 |
if ( $params["askforsubfolders"] == "true" && $params['subdir_selection_index'] >= 1 ) {
|
78 |
if ( substr($params["uploadpath"], -1, 1) == "/" ) $params["uploadpath"] .= $params['subfoldersarray'][$params['subdir_selection_index']];
|
73 |
else $files_count = 0;
|
74 |
$params_output_array["general"]['files_count'] = $files_count;
|
75 |
|
76 |
+
/* append userdata fields to upload path */
|
77 |
+
$search = array ( );
|
78 |
+
$replace = array ( );
|
79 |
+
foreach ( $userdata_fields as $userdata_key => $userdata_field ) {
|
80 |
+
$ind = 1 + $userdata_key;
|
81 |
+
array_push($search, '/%userdata'.$ind.'%/');
|
82 |
+
array_push($replace, $userdata_field["value"]);
|
83 |
+
}
|
84 |
+
$params["uploadpath"] = preg_replace($search, $replace, $params["uploadpath"]);
|
85 |
+
|
86 |
/* append subfolder name to upload path */
|
87 |
if ( $params["askforsubfolders"] == "true" && $params['subdir_selection_index'] >= 1 ) {
|
88 |
if ( substr($params["uploadpath"], -1, 1) == "/" ) $params["uploadpath"] .= $params['subfoldersarray'][$params['subdir_selection_index']];
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: nickboss
|
|
3 |
Donate link: http://www.iptanus.com/support/wordpress-file-upload
|
4 |
Tags: upload, upload file, upload files, multiple, multiple upload, multiple uploads, captcha, progress bar, form, ajax, directory, HTML5, filelist, gallery, image gallery, browser, file browser, gallery, image gallery, shortcode, logging, file logging
|
5 |
Requires at least: 2.9.2
|
6 |
-
Tested up to: 3.
|
7 |
Stable tag: "trunk"
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -110,6 +110,9 @@ Administrators can view and manage the uploaded files from the File Browser that
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
113 |
= 2.4.2 =
|
114 |
* intermediate update to address some vulnerability issues
|
115 |
|
@@ -310,6 +313,9 @@ Initial version.
|
|
310 |
|
311 |
== Upgrade Notice ==
|
312 |
|
|
|
|
|
|
|
313 |
= 2.4.2 =
|
314 |
Important upgrade to address some vulnerability issues.
|
315 |
|
3 |
Donate link: http://www.iptanus.com/support/wordpress-file-upload
|
4 |
Tags: upload, upload file, upload files, multiple, multiple upload, multiple uploads, captcha, progress bar, form, ajax, directory, HTML5, filelist, gallery, image gallery, browser, file browser, gallery, image gallery, shortcode, logging, file logging
|
5 |
Requires at least: 2.9.2
|
6 |
+
Tested up to: 3.9.1
|
7 |
Stable tag: "trunk"
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 2.4.3 =
|
114 |
+
* correction of bug to allow uploadpath to receive userdata as parameter
|
115 |
+
|
116 |
= 2.4.2 =
|
117 |
* intermediate update to address some vulnerability issues
|
118 |
|
313 |
|
314 |
== Upgrade Notice ==
|
315 |
|
316 |
+
= 2.4.2 =
|
317 |
+
Upgrade to address some functionality issues.
|
318 |
+
|
319 |
= 2.4.2 =
|
320 |
Important upgrade to address some vulnerability issues.
|
321 |
|
wordpress_file_upload.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
session_start();
|
|
|
3 |
/*
|
4 |
-
Plugin Name: Wordpress File Upload
|
5 |
Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
|
6 |
Description: Simple interface to upload files from a page.
|
7 |
-
Version: 2.4.
|
8 |
Author: Nickolas Bossinas
|
9 |
Author URI: http://www.iptanus.com
|
10 |
*/
|
1 |
<?php
|
2 |
session_start();
|
3 |
+
/*Plugin Name: Wordpress File Upload
|
4 |
/*
|
|
|
5 |
Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
|
6 |
Description: Simple interface to upload files from a page.
|
7 |
+
Version: 2.4.3
|
8 |
Author: Nickolas Bossinas
|
9 |
Author URI: http://www.iptanus.com
|
10 |
*/
|