mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Allow sending empty file data
This commit is contained in:
parent
718dfc6e9c
commit
246babf209
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user