Allow sending empty file data

This commit is contained in:
İsmail BASKIN 2016-04-08 15:26:31 +03:00
parent 718dfc6e9c
commit 246babf209

View File

@ -443,6 +443,9 @@
key = $('.key', $(this)).val();
if ($('.value', $(this)).attr('type') === 'file' ) {
value = $('.value', $(this)).prop('files')[0];
if(!value) {
value = new File([], '');
}
} else {
value = $('.value', $(this)).val();
}