Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"the request was rejected because no multipart boundary was found" #15

Open
FeynmanNg opened this issue Dec 10, 2018 · 1 comment
Open

Comments

@FeynmanNg
Copy link

@Headers({ 'Content-Type': 'multipart/form-data' }) @POST('/apps') addApk(@Body formData: FormData, @Query('params') params: { version: string, description: string }): Observable<Result<{ id: number, type: string, url: string }>> { return null; }
---service end---
this.service.add(formData, { version : this.formCache.version, description: this.formCache.description }).subscribe( res => { // ... }, err => { // ... } );
--- component end---

when I post a upload request, here's my feedback:
Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found

should I add the bounary by myself ?

@dileepbalineni
Copy link

i aslo facing same problem too , i want to send single multipart file with additional params ,
Already I tried few methods does nt work please let me any https://stackoverflow.com/questions/60451564/error-while-uploading-file-using-openfeign-the-request-was-rejected-because-no
here am attaching the error and smaple code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants