Version Description
- Fixed - Security issues (Cross-Site Scripting through SVG files via remote upload)
- New - Filter
dnd_cf7_data_options
to manualy change the browse text and label text.
Download this release
Release Info
Developer | glenwpcoder |
Plugin | Drag and Drop Multiple File Upload – Contact Form 7 |
Version | 1.3.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.6.2 to 1.3.6.3
- assets/js/codedropz-uploader-min.js +2 -2
- drag-n-drop-upload-cf7.php +2 -2
- inc/dnd-upload-cf7.php +21 -16
- readme.txt +11 -4
assets/js/codedropz-uploader-min.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
-
* CodeDropz Uploader v1.3.6.
|
3 |
* Copyright 2018 Glen Mongaya
|
4 |
* CodeDrop Drag&Drop Uploader
|
5 |
-
* @version 1.3.6.
|
6 |
* @author CodeDropz, Glen Don L. Mongaya
|
7 |
* @license The MIT License (MIT)
|
8 |
*/
|
1 |
/**
|
2 |
+
* CodeDropz Uploader v1.3.6.3
|
3 |
* Copyright 2018 Glen Mongaya
|
4 |
* CodeDrop Drag&Drop Uploader
|
5 |
+
* @version 1.3.6.3
|
6 |
* @author CodeDropz, Glen Don L. Mongaya
|
7 |
* @license The MIT License (MIT)
|
8 |
*/
|
drag-n-drop-upload-cf7.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: This simple plugin create Drag & Drop or choose Multiple File upload in your Confact Form 7 Forms.
|
7 |
* Text Domain: drag-and-drop-multiple-file-upload-contact-form-7
|
8 |
* Domain Path: /languages
|
9 |
-
* Version: 1.3.6.
|
10 |
* Author: Glen Don L. Mongaya
|
11 |
* Author URI: http://codedropz.com
|
12 |
* License: GPL2
|
@@ -21,7 +21,7 @@
|
|
21 |
define( 'dnd_upload_cf7', true );
|
22 |
|
23 |
/** Define plugin Version */
|
24 |
-
define( 'dnd_upload_cf7_version', '1.3.6.
|
25 |
|
26 |
/** Define constant Plugin Directories */
|
27 |
define( 'dnd_upload_cf7_directory', untrailingslashit( dirname( __FILE__ ) ) );
|
6 |
* Description: This simple plugin create Drag & Drop or choose Multiple File upload in your Confact Form 7 Forms.
|
7 |
* Text Domain: drag-and-drop-multiple-file-upload-contact-form-7
|
8 |
* Domain Path: /languages
|
9 |
+
* Version: 1.3.6.3
|
10 |
* Author: Glen Don L. Mongaya
|
11 |
* Author URI: http://codedropz.com
|
12 |
* License: GPL2
|
21 |
define( 'dnd_upload_cf7', true );
|
22 |
|
23 |
/** Define plugin Version */
|
24 |
+
define( 'dnd_upload_cf7_version', '1.3.6.3' );
|
25 |
|
26 |
/** Define constant Plugin Directories */
|
27 |
define( 'dnd_upload_cf7_directory', untrailingslashit( dirname( __FILE__ ) ) );
|
inc/dnd-upload-cf7.php
CHANGED
@@ -426,26 +426,31 @@
|
|
426 |
wp_enqueue_script( 'codedropz-uploader', plugins_url ('/assets/js/codedropz-uploader-min.js', dirname(__FILE__) ), array('jquery'), $version, true );
|
427 |
wp_enqueue_script( 'dnd-upload-cf7', plugins_url ('/assets/js/dnd-upload-cf7.js', dirname(__FILE__) ), array('jquery','codedropz-uploader','contact-form-7'), $version, true );
|
428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
// registered script with data for a JavaScript variable.
|
430 |
wp_localize_script( 'dnd-upload-cf7', 'dnd_cf7_uploader',
|
431 |
array(
|
432 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
433 |
'ajax_nonce' => wp_create_nonce( "dnd-cf7-security-nonce" ),
|
434 |
-
'drag_n_drop_upload' =>
|
435 |
-
'tag' => ( get_option('drag_n_drop_heading_tag') ? get_option('drag_n_drop_heading_tag') : 'h3' ),
|
436 |
-
'text' => ( get_option('drag_n_drop_text') ? get_option('drag_n_drop_text') : __('Drag & Drop Files Here','drag-and-drop-multiple-file-upload-contact-form-7') ),
|
437 |
-
'or_separator' => ( get_option('drag_n_drop_separator') ? get_option('drag_n_drop_separator') : __('or','drag-and-drop-multiple-file-upload-contact-form-7') ),
|
438 |
-
'browse' => ( get_option('drag_n_drop_browse_text') ? get_option('drag_n_drop_browse_text') : __('Browse Files','drag-and-drop-multiple-file-upload-contact-form-7') ),
|
439 |
-
'server_max_error' => ( get_option('drag_n_drop_error_server_limit') ? get_option('drag_n_drop_error_server_limit') : dnd_cf7_error_msg('server_limit') ),
|
440 |
-
'large_file' => ( get_option('drag_n_drop_error_files_too_large') ? get_option('drag_n_drop_error_files_too_large') : dnd_cf7_error_msg('large_file') ),
|
441 |
-
'inavalid_type' => ( get_option('drag_n_drop_error_invalid_file') ? get_option('drag_n_drop_error_invalid_file') : dnd_cf7_error_msg('invalid_type') ),
|
442 |
-
'max_file_limit' => ( get_option('drag_n_drop_error_max_file') ? get_option('drag_n_drop_error_max_file') : dnd_cf7_error_msg('max_file_limit') ),
|
443 |
-
'required' => dnd_cf7_error_msg('required'),
|
444 |
-
'delete' => array(
|
445 |
-
'text' => __('deleting','drag-and-drop-multiple-file-upload-contact-form-7'),
|
446 |
-
'title' => __('Remove','drag-and-drop-multiple-file-upload-contact-form-7')
|
447 |
-
)
|
448 |
-
),
|
449 |
'dnd_text_counter' => __('of','drag-and-drop-multiple-file-upload-contact-form-7'),
|
450 |
'disable_btn' => ( get_option('drag_n_drop_disable_btn') == 'yes' ? true : false )
|
451 |
)
|
@@ -1099,7 +1104,7 @@
|
|
1099 |
|
1100 |
// Define custom (safe) file extension.
|
1101 |
function dnd_upload_default_ext() {
|
1102 |
-
return apply_filters('dnd_cf7_default_ext', 'jpg|jpeg|JPG|png|gif|pdf|doc|docx|ppt|
|
1103 |
}
|
1104 |
|
1105 |
// Add custom links
|
426 |
wp_enqueue_script( 'codedropz-uploader', plugins_url ('/assets/js/codedropz-uploader-min.js', dirname(__FILE__) ), array('jquery'), $version, true );
|
427 |
wp_enqueue_script( 'dnd-upload-cf7', plugins_url ('/assets/js/dnd-upload-cf7.js', dirname(__FILE__) ), array('jquery','codedropz-uploader','contact-form-7'), $version, true );
|
428 |
|
429 |
+
// All data options
|
430 |
+
$data_options = apply_filters('dnd_cf7_data_options',
|
431 |
+
array(
|
432 |
+
'tag' => ( get_option('drag_n_drop_heading_tag') ? get_option('drag_n_drop_heading_tag') : 'h3' ),
|
433 |
+
'text' => ( get_option('drag_n_drop_text') ? get_option('drag_n_drop_text') : __('Drag & Drop Files Here','drag-and-drop-multiple-file-upload-contact-form-7') ),
|
434 |
+
'or_separator' => ( get_option('drag_n_drop_separator') ? get_option('drag_n_drop_separator') : __('or','drag-and-drop-multiple-file-upload-contact-form-7') ),
|
435 |
+
'browse' => ( get_option('drag_n_drop_browse_text') ? get_option('drag_n_drop_browse_text') : __('Browse Files','drag-and-drop-multiple-file-upload-contact-form-7') ),
|
436 |
+
'server_max_error' => ( get_option('drag_n_drop_error_server_limit') ? get_option('drag_n_drop_error_server_limit') : dnd_cf7_error_msg('server_limit') ),
|
437 |
+
'large_file' => ( get_option('drag_n_drop_error_files_too_large') ? get_option('drag_n_drop_error_files_too_large') : dnd_cf7_error_msg('large_file') ),
|
438 |
+
'inavalid_type' => ( get_option('drag_n_drop_error_invalid_file') ? get_option('drag_n_drop_error_invalid_file') : dnd_cf7_error_msg('invalid_type') ),
|
439 |
+
'max_file_limit' => ( get_option('drag_n_drop_error_max_file') ? get_option('drag_n_drop_error_max_file') : dnd_cf7_error_msg('max_file_limit') ),
|
440 |
+
'required' => dnd_cf7_error_msg('required'),
|
441 |
+
'delete' => array(
|
442 |
+
'text' => __('deleting','drag-and-drop-multiple-file-upload-contact-form-7'),
|
443 |
+
'title' => __('Remove','drag-and-drop-multiple-file-upload-contact-form-7')
|
444 |
+
)
|
445 |
+
)
|
446 |
+
);
|
447 |
+
|
448 |
// registered script with data for a JavaScript variable.
|
449 |
wp_localize_script( 'dnd-upload-cf7', 'dnd_cf7_uploader',
|
450 |
array(
|
451 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
452 |
'ajax_nonce' => wp_create_nonce( "dnd-cf7-security-nonce" ),
|
453 |
+
'drag_n_drop_upload' => $data_options,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
'dnd_text_counter' => __('of','drag-and-drop-multiple-file-upload-contact-form-7'),
|
455 |
'disable_btn' => ( get_option('drag_n_drop_disable_btn') == 'yes' ? true : false )
|
456 |
)
|
1104 |
|
1105 |
// Define custom (safe) file extension.
|
1106 |
function dnd_upload_default_ext() {
|
1107 |
+
return apply_filters('dnd_cf7_default_ext', 'jpg|jpeg|JPG|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv|xls' );
|
1108 |
}
|
1109 |
|
1110 |
// Add custom links
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: glenwpcoder, yordansoares
|
|
3 |
Donate link : http://codedropz.com/donation
|
4 |
Tags: drag and drop, contact form 7, ajax uploader, multiple file, upload, contact form 7 uploader
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.3.6.
|
8 |
Requires PHP: 5.2.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -101,6 +101,10 @@ For any bug reports go to <a href="https://wordpress.org/support/plugin/drag-and
|
|
101 |
|
102 |
To limit file size in `multiple file upload` field generator under Contact Form 7, there's a field `File size limit (bytes)`.
|
103 |
|
|
|
|
|
|
|
|
|
104 |
Please take note it should be `Bytes` you may use any converter just Google (MB to Bytes converter) default of this plugin is 5MB(5242880 Bytes).
|
105 |
|
106 |
= How can I limit the number of files in my Upload? =
|
@@ -153,6 +157,10 @@ To install this plugin see below:
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
|
|
156 |
= 1.3.6.2 =
|
157 |
- Added - Add settings link in the plugin page
|
158 |
- Fixed - Long text/heading is hidden on the container
|
@@ -165,7 +173,6 @@ To install this plugin see below:
|
|
165 |
- Add spam filtering fixes
|
166 |
- Added “Disable Auto Delete” option.
|
167 |
|
168 |
-
|
169 |
= 1.3.5.9 =
|
170 |
- Add accept types data attributes [See Here](https://wordpress.org/support/topic/the-user-sees-only-a-certain-type-of-files/)
|
171 |
|
@@ -277,7 +284,7 @@ To install this plugin see below:
|
|
277 |
|
278 |
= 1.2.6.0 =
|
279 |
* Fixed - Allow to upload file with the same filename.
|
280 |
-
* Fixed - Can't upload image after
|
281 |
* Fixed - Max-file issue (https://wordpress.org/support/topic/max-file-issue/)
|
282 |
* Added - a note message when file reached the max-file Limit ( "To inform user that some of the files are not uploaded" ).
|
283 |
* Added - Better Ajax deletion ( Remove files from the server - Only if `Send As Attachment` is checked )
|
3 |
Donate link : http://codedropz.com/donation
|
4 |
Tags: drag and drop, contact form 7, ajax uploader, multiple file, upload, contact form 7 uploader
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 1.3.6.3
|
8 |
Requires PHP: 5.2.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
101 |
|
102 |
To limit file size in `multiple file upload` field generator under Contact Form 7, there's a field `File size limit (bytes)`.
|
103 |
|
104 |
+
You can also manually add limit parameter in existing [mfile] tag.
|
105 |
+
|
106 |
+
Example: *[mfile upload-file-433 limit:20971520]* - This limit the user to upload upto 20MB only.
|
107 |
+
|
108 |
Please take note it should be `Bytes` you may use any converter just Google (MB to Bytes converter) default of this plugin is 5MB(5242880 Bytes).
|
109 |
|
110 |
= How can I limit the number of files in my Upload? =
|
157 |
|
158 |
== Changelog ==
|
159 |
|
160 |
+
= 1.3.6.3 =
|
161 |
+
- Fixed - Security issues (Cross-Site Scripting through SVG files via remote upload)
|
162 |
+
- New - Filter `dnd_cf7_data_options` to manualy change the browse text and label text.
|
163 |
+
|
164 |
= 1.3.6.2 =
|
165 |
- Added - Add settings link in the plugin page
|
166 |
- Fixed - Long text/heading is hidden on the container
|
173 |
- Add spam filtering fixes
|
174 |
- Added “Disable Auto Delete” option.
|
175 |
|
|
|
176 |
= 1.3.5.9 =
|
177 |
- Add accept types data attributes [See Here](https://wordpress.org/support/topic/the-user-sees-only-a-certain-type-of-files/)
|
178 |
|
284 |
|
285 |
= 1.2.6.0 =
|
286 |
* Fixed - Allow to upload file with the same filename.
|
287 |
+
* Fixed - Can't upload image after deleting (https://wordpress.org/support/topic/cant-upload-image-after-deleting-it/)
|
288 |
* Fixed - Max-file issue (https://wordpress.org/support/topic/max-file-issue/)
|
289 |
* Added - a note message when file reached the max-file Limit ( "To inform user that some of the files are not uploaded" ).
|
290 |
* Added - Better Ajax deletion ( Remove files from the server - Only if `Send As Attachment` is checked )
|