Yes sure, I will do that.
Thanks.
Hi, I’ve added an option in the admin where you can change that message.
Go to WP-admin menu Contact -> Drag and Drop Upload -> Error Message Section
Please update to version 1.2.3
-
This reply was modified 5 years, 2 months ago by Glen Mongaya.
Hey Glen!
Thanks a lot for the addition! I’m sure I won’t be the only one to use it 😀
Another thing I did with my install was to add an “info message” using the native success/error message you created when the upload is really attached (I noticed a brief difference between the 100% upload and the ajax XHR real finish…
dnd-upload-cf7.js
Cf7myUploadFile.CodeDropz_Uploader({
'color' : '#fff',
'ajax_url' : dnd_cf7_uploader.ajax_url,
'max_upload_size' : Cf7myUploadFile.data('limit'),
'supported_type' : Cf7myUploadFile.data('type'),
'max_file' : Cf7myUploadFile.data('max'),
'text' : TextOJB.text,
'separator' : TextOJB.or_separator,
'button_text' : TextOJB.browse,
'on_success' : function( progressBar, response ){
// Progressbar Object
var progressDetails = $('#' + progressBar );
if ($('.dnd-progress-bar > span').hasClass('complete')) {
console.log('File upload complete');
$('.dnd-upload-details .wait').remove();
$('.dnd-upload-details').append('<span class="success">The file was successfully attached</span>');
$('input[type="submit"]').removeClass('disabled').prop( "disabled", false )
}
// Append hidden input field
progressDetails
.find('.dnd-upload-details')
.append('<span><input type="hidden" name="'+ Cf7myUploadFile.attr('name') +'[]" value="'+ response.data.path +'/'+ response.data.file +'"></span>');
}
});
codedropz-uploader.js (deminified) aprox line 36
d.handler.on("change", function(e) {
t(this.files, "click"),
jQuery('.dnd-upload-details').append('<span class="wait">Wait... <i class="fa fa-refresh fa-spin fa-fw" aria-hidden="true"></i></span>'),
jQuery('input[type="submit"]').addClass('disabled').prop( "disabled", true )
});
-
This reply was modified 5 years, 2 months ago by atempel.
Hey Man,
Thanks for this will give it a try.
Really appreciate it 🙂
Regards,
Glen