Version Description
- mitigated issue with "Session failed" errors appearing randomly in websites
- fixed bug not applying %filename% variable inside redirect link
- fixed bug not applying new filename, which has been modified with wfu_before_file_upload filter, in email notifications and redirects
- fixed bug where when 2 big files were uploaded at the same time and one failed due to failed chunk, then the progress bar would not go to 100% and the file would not be shown as cancelled
Download this release
Release Info
Developer | nickboss |
Plugin | WordPress File Upload |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- js/wordpress_file_upload_functions.js +1 -1
- lib/wfu_processfiles.php +4 -0
- readme.txt +9 -0
- wordpress_file_upload.php +3 -2
js/wordpress_file_upload_functions.js
CHANGED
@@ -690,7 +690,7 @@ function wfu_ProcessUploadComplete(sid, file_id, upload_params, unique_id, param
|
|
690 |
G.files_processed += Params.general.files_count;
|
691 |
G.message = wfu_join_strings("<br />", G.message, Params.general.message);
|
692 |
if (G.update_wpfilebase == "") G.update_wpfilebase = Params.general.update_wpfilebase;
|
693 |
-
|
694 |
G.notify_only_filename_list = wfu_join_strings(", ", G.notify_only_filename_list, Params.general.notify_only_filename_list);
|
695 |
G.notify_target_path_list = wfu_join_strings(", ", G.notify_target_path_list, Params.general.notify_target_path_list);
|
696 |
G.notify_attachment_list = wfu_join_strings(",", G.notify_attachment_list, Params.general.notify_attachment_list);
|
690 |
G.files_processed += Params.general.files_count;
|
691 |
G.message = wfu_join_strings("<br />", G.message, Params.general.message);
|
692 |
if (G.update_wpfilebase == "") G.update_wpfilebase = Params.general.update_wpfilebase;
|
693 |
+
G.redirect_link = Params.general.redirect_link;
|
694 |
G.notify_only_filename_list = wfu_join_strings(", ", G.notify_only_filename_list, Params.general.notify_only_filename_list);
|
695 |
G.notify_target_path_list = wfu_join_strings(", ", G.notify_target_path_list, Params.general.notify_target_path_list);
|
696 |
G.notify_attachment_list = wfu_join_strings(",", G.notify_attachment_list, Params.general.notify_attachment_list);
|
lib/wfu_processfiles.php
CHANGED
@@ -267,6 +267,8 @@ function wfu_process_files($params, $method) {
|
|
267 |
If additional data are required, such as user_id or userdata values, they can be retrieved by implementing the
|
268 |
previous filter wfu_before_file_check, corresponding them to the unique file id */
|
269 |
if ( $file_unique_id != '' ) $target_path = apply_filters('wfu_before_file_upload', $target_path, $file_unique_id);
|
|
|
|
|
270 |
//move the uploaded file to its final destination
|
271 |
$wfu_upload_file_ret = wfu_upload_file($source_path, $target_path, $params["accessmethod"], $params["ftpinfo"]);
|
272 |
$file_copied = $wfu_upload_file_ret["uploaded"];
|
@@ -324,6 +326,8 @@ function wfu_process_files($params, $method) {
|
|
324 |
If additional data are required, such as user_id or userdata values, they can be retrieved by implementing the
|
325 |
previous filter wfu_before_file_check, corresponding them to the unique file id */
|
326 |
if ( $file_unique_id != '' ) $target_path = apply_filters('wfu_before_file_upload', $target_path, $file_unique_id);
|
|
|
|
|
327 |
//move the uploaded file to its final destination
|
328 |
$wfu_upload_file_ret = wfu_upload_file($source_path, $target_path, $params["accessmethod"], $params["ftpinfo"]);
|
329 |
$file_copied = $wfu_upload_file_ret["uploaded"];
|
267 |
If additional data are required, such as user_id or userdata values, they can be retrieved by implementing the
|
268 |
previous filter wfu_before_file_check, corresponding them to the unique file id */
|
269 |
if ( $file_unique_id != '' ) $target_path = apply_filters('wfu_before_file_upload', $target_path, $file_unique_id);
|
270 |
+
//recalculate $only_filename in case it changed with wfu_before_file_upload filter
|
271 |
+
$only_filename = basename($target_path);
|
272 |
//move the uploaded file to its final destination
|
273 |
$wfu_upload_file_ret = wfu_upload_file($source_path, $target_path, $params["accessmethod"], $params["ftpinfo"]);
|
274 |
$file_copied = $wfu_upload_file_ret["uploaded"];
|
326 |
If additional data are required, such as user_id or userdata values, they can be retrieved by implementing the
|
327 |
previous filter wfu_before_file_check, corresponding them to the unique file id */
|
328 |
if ( $file_unique_id != '' ) $target_path = apply_filters('wfu_before_file_upload', $target_path, $file_unique_id);
|
329 |
+
//recalculate $only_filename in case it changed with wfu_before_file_upload filter
|
330 |
+
$only_filename = basename($target_path);
|
331 |
//move the uploaded file to its final destination
|
332 |
$wfu_upload_file_ret = wfu_upload_file($source_path, $target_path, $params["accessmethod"], $params["ftpinfo"]);
|
333 |
$file_copied = $wfu_upload_file_ret["uploaded"];
|
readme.txt
CHANGED
@@ -110,6 +110,12 @@ Administrators can view and manage the uploaded files from the File Browser that
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
= 2.5.3 =
|
114 |
* fixed bug not allowing redirection to work
|
115 |
* fixed bug that was including failed files in email notifications on certain occasions
|
@@ -345,6 +351,9 @@ Initial version.
|
|
345 |
|
346 |
== Upgrade Notice ==
|
347 |
|
|
|
|
|
|
|
348 |
= 2.5.3 =
|
349 |
Important upgrade to address some bugs.
|
350 |
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 2.5.4 =
|
114 |
+
* mitigated issue with "Session failed" errors appearing randomly in websites
|
115 |
+
* fixed bug not applying %filename% variable inside redirect link
|
116 |
+
* fixed bug not applying new filename, which has been modified with wfu_before_file_upload filter, in email notifications and redirects
|
117 |
+
* fixed bug where when 2 big files were uploaded at the same time and one failed due to failed chunk, then the progress bar would not go to 100% and the file would not be shown as cancelled
|
118 |
+
|
119 |
= 2.5.3 =
|
120 |
* fixed bug not allowing redirection to work
|
121 |
* fixed bug that was including failed files in email notifications on certain occasions
|
351 |
|
352 |
== Upgrade Notice ==
|
353 |
|
354 |
+
= 2.5.4 =
|
355 |
+
Important upgrade to address some bugs.
|
356 |
+
|
357 |
= 2.5.3 =
|
358 |
Important upgrade to address some bugs.
|
359 |
|
wordpress_file_upload.php
CHANGED
@@ -4,7 +4,7 @@ session_start();
|
|
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.5.
|
8 |
Author: Nickolas Bossinas
|
9 |
Author URI: http://www.iptanus.com
|
10 |
*/
|
@@ -104,7 +104,8 @@ function wordpress_file_upload_function($incomingfromhandler) {
|
|
104 |
// store current page id in params array
|
105 |
$params["pageid"] = $post->ID;
|
106 |
|
107 |
-
$_SESSION['wfu_token_'.$sid]
|
|
|
108 |
|
109 |
$user = wp_get_current_user();
|
110 |
$widths = wfu_decode_dimensions($params["widths"]);
|
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.5.4
|
8 |
Author: Nickolas Bossinas
|
9 |
Author URI: http://www.iptanus.com
|
10 |
*/
|
104 |
// store current page id in params array
|
105 |
$params["pageid"] = $post->ID;
|
106 |
|
107 |
+
if ( !isset($_SESSION['wfu_token_'.$sid]) || $_SESSION['wfu_token_'.$sid] == "" )
|
108 |
+
$_SESSION['wfu_token_'.$sid] = uniqid(mt_rand(), TRUE);
|
109 |
|
110 |
$user = wp_get_current_user();
|
111 |
$widths = wfu_decode_dimensions($params["widths"]);
|