WordPress File Upload - Version 2.5.1

Version Description

  • fixed important bug in free version giving the same name to all uploaded files
  • fixed bug in free version not clearing completely the plugin cache from previous file upload
Download this release

Release Info

Developer nickboss
Plugin Icon 128x128 WordPress File Upload
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

js/wordpress_file_upload_functions.js CHANGED
@@ -1299,6 +1299,7 @@ function wfu_unlock_upload(sid) {
1299
  }
1300
 
1301
  function wfu_clear(sid) {
 
1302
  var textbox = document.getElementById('fileName_' + sid);
1303
  if (textbox) {
1304
  textbox.value = '';
1299
  }
1300
 
1301
  function wfu_clear(sid) {
1302
+ document.getElementById("uploadform_" + sid).reset();
1303
  var textbox = document.getElementById('fileName_' + sid);
1304
  if (textbox) {
1305
  textbox.value = '';
lib/wfu_admin.php CHANGED
@@ -211,7 +211,6 @@ function wfu_manage_settings($message = '') {
211
  $echo_str .= "\n\t\t\t\t\t".'</td>';
212
  $echo_str .= "\n\t\t\t\t\t".'<td style="vertical-align:top;">';
213
  $lat_version = wfu_get_latest_version();
214
- echo $lat_version;
215
  $ret = wfu_compare_versions($cur_version, $lat_version);
216
  if ( $ret['status'] && $ret['result'] == 'lower' ) {
217
  $echo_str .= "\n\t\t\t\t\t\t".'<div style="display:inline-block; background-color:bisque; padding:0 0 0 4px; border-left:3px solid lightcoral;">';
211
  $echo_str .= "\n\t\t\t\t\t".'</td>';
212
  $echo_str .= "\n\t\t\t\t\t".'<td style="vertical-align:top;">';
213
  $lat_version = wfu_get_latest_version();
 
214
  $ret = wfu_compare_versions($cur_version, $lat_version);
215
  if ( $ret['status'] && $ret['result'] == 'lower' ) {
216
  $echo_str .= "\n\t\t\t\t\t\t".'<div style="display:inline-block; background-color:bisque; padding:0 0 0 4px; border-left:3px solid lightcoral;">';
lib/wfu_processfiles.php CHANGED
@@ -27,6 +27,7 @@ function wfu_process_files($params, $method) {
27
  $notify_attachment_list = "";
28
  $uploadedfile = 'uploadedfile_'.$sid;
29
  $hiddeninput = 'hiddeninput_'.$sid;
 
30
  $allowed_patterns = explode(",",$params["uploadpatterns"]);
31
  foreach ($allowed_patterns as $key => $allowed_pattern) {
32
  $allowed_patterns[$key] = trim($allowed_pattern);
@@ -36,7 +37,7 @@ function wfu_process_files($params, $method) {
36
  $userdata_fields[$userdata_key]["value"] = ( isset($_POST[$hiddeninput.'_userdata_'.$userdata_key]) ? $_POST[$hiddeninput.'_userdata_'.$userdata_key] : "" );
37
  $params_output_array["version"] = "full";
38
  $params_output_array["general"]['shortcode_id'] = $sid;
39
- $params_output_array["general"]['unique_id'] = ( isset($_POST['unique_id']) ? $_POST['unique_id'] : "" );
40
  $params_output_array["general"]['state'] = 0;
41
  $params_output_array["general"]['files_count'] = 0;
42
  $params_output_array["general"]['update_wpfilebase'] = "";
27
  $notify_attachment_list = "";
28
  $uploadedfile = 'uploadedfile_'.$sid;
29
  $hiddeninput = 'hiddeninput_'.$sid;
30
+ $unique_id = ( isset($_POST['unique_id']) ? $_POST['unique_id'] : "" );
31
  $allowed_patterns = explode(",",$params["uploadpatterns"]);
32
  foreach ($allowed_patterns as $key => $allowed_pattern) {
33
  $allowed_patterns[$key] = trim($allowed_pattern);
37
  $userdata_fields[$userdata_key]["value"] = ( isset($_POST[$hiddeninput.'_userdata_'.$userdata_key]) ? $_POST[$hiddeninput.'_userdata_'.$userdata_key] : "" );
38
  $params_output_array["version"] = "full";
39
  $params_output_array["general"]['shortcode_id'] = $sid;
40
+ $params_output_array["general"]['unique_id'] = $unique_id;
41
  $params_output_array["general"]['state'] = 0;
42
  $params_output_array["general"]['files_count'] = 0;
43
  $params_output_array["general"]['update_wpfilebase'] = "";
readme.txt CHANGED
@@ -110,6 +110,10 @@ Administrators can view and manage the uploaded files from the File Browser that
110
 
111
  == Changelog ==
112
 
 
 
 
 
113
  = 2.5.0 =
114
  * major redesign of upload algorithm to address upload issues with Safari for Mac and Firefox
115
  * files are first checked by server before actually uploaded, in order to avoid uploading of large files that are invalid
@@ -333,6 +337,9 @@ Initial version.
333
 
334
  == Upgrade Notice ==
335
 
 
 
 
336
  = 2.5.0 =
337
  Important upgrade to address some bugs.
338
 
110
 
111
  == Changelog ==
112
 
113
+ = 2.5.1 =
114
+ * fixed important bug in free version giving the same name to all uploaded files
115
+ * fixed bug in free version not clearing completely the plugin cache from previous file upload
116
+
117
  = 2.5.0 =
118
  * major redesign of upload algorithm to address upload issues with Safari for Mac and Firefox
119
  * files are first checked by server before actually uploaded, in order to avoid uploading of large files that are invalid
337
 
338
  == Upgrade Notice ==
339
 
340
+ = 2.5.1 =
341
+ Important upgrade to address some bugs.
342
+
343
  = 2.5.0 =
344
  Important upgrade to address some bugs.
345
 
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.0
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */
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.1
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */