diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig
index fbd4213..7c312ea 100755
--- a/Resources/views/layout.html.twig
+++ b/Resources/views/layout.html.twig
@@ -357,6 +357,11 @@
return false;
}
+ if (hasFileTypes && bodyFormat != 'form') {
+ alert("Body Format must be set to 'Form Data' when utilizing file upload type parameters.\nYour current bodyFormat is '" + bodyFormat + "'. Change your BodyFormat or do not use file type\nparameters.");
+ return false;
+ }
+
if (hasFileTypes) {
// retrieve all the parameters to send for file upload
$('.parameters .tuple', $(this)).each(function() {