rebirth-http icon indicating copy to clipboard operation
rebirth-http copied to clipboard

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

Open FeynmanNg opened this issue 6 years ago • 1 comments

@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 ?

FeynmanNg avatar Dec 10 '18 02:12 FeynmanNg

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

dileepbalineni avatar Feb 28 '20 12:02 dileepbalineni