swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Form Data "files" is not correctly handled with default fetch template

Open omarmciver opened this issue 2 years ago • 4 comments

Form Data "files" is not correctly handled as an array of objects in fetch templates and is inconsistent with the axios templates. As a result, an array of files in FormData are sent in the fetch POST as an empty array.

omarmciver avatar Jul 21 '23 15:07 omarmciver

#555

omarmciver avatar Jul 21 '23 15:07 omarmciver

@js2me First attempt at contribution. Appreciate any feedback on issue and PR submission.

omarmciver avatar Jul 21 '23 15:07 omarmciver

I think this is essentially the same issue as https://github.com/acacode/swagger-typescript-api/issues/462, but it's not clear why @smorimoto closed the PR #555 without comment as I think that would have fixed this.

sflanker avatar Sep 19 '25 22:09 sflanker

I added a new PR #1431

omarmciver avatar Sep 23 '25 18:09 omarmciver