Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // replace if ( typeof window.FormData !== 'function' ) {
- if ( typeof window.FormData === undefined ) {
- // before $.ajax send submit
- $('input[type=file]',$form).each(function() {
- var files = $(this).prop('files');
- if ( files != undefined && files.length <= 0 ) {
- formData.delete($(this).attr('name'));
- }
- });
Add Comment
Please, Sign In to add comment