diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig
index c9fa629..30f280d 100644
--- a/Resources/views/layout.html.twig
+++ b/Resources/views/layout.html.twig
@@ -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();
}