mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Honor body format before uploading file type parameters
This commit is contained in:
parent
72a1418b7d
commit
493e6066b3
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user