How to set a boundary on a multipart/form-data request while using jquery ajax FormData() with multiple files
问题 I have an HTML form that needs to upload 3 parts to an existing REST API in a single request. I can't seem to find documentation on how to set a boundary on a FormData submission. I've attempted to follow the examples given here: How to send FormData objects with Ajax-requests in jQuery? However when I submit the data it gets rejected with the following stacktrace: Caused by: org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found.