We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b884c48 + 48d7805 commit 811cac5Copy full SHA for 811cac5
src/main/resources/handlebars/typescript-angular/api.service.mustache
@@ -285,6 +285,15 @@ export class {{classname}} {
285
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
286
useForm = canConsumeForm;
287
{{/isBinary}}
288
+{{^isBinary}}
289
+{{#items}}
290
+{{#isBinary}}
291
+ // use FormData to transmit files using content-type "multipart/form-data"
292
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
293
+ useForm = canConsumeForm;
294
+{{/isBinary}}
295
+{{/items}}
296
297
{{/formParams}}
298
if (useForm) {
299
formParams = new FormData();
0 commit comments