mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #498 from jonmchan/honorBodyFormat
Honor body format before uploading file type parameters
This commit is contained in:
commit
6d50c200ba
@ -413,6 +413,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