eclipse-ee4j / eclipse-ee4j/jersey

rep23xxxx which is created for @FormDataParam("upload") File file is getting with 0kb

Open
#3,381 4 comments 0 reactions 0 assignees View on GitHub
Priority: Major Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

```
@POST
@Path("/files/content")
@Consumes({MediaType.MULTIPART_FORM_DATA})
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@SecurityLevel(value = "ADD_DOCUMENT_ACCESS{verifyDocumentModuleIsEnable=true,verifyActiveSite=true}")
@AuditTypeAlias(value = "ADD_FILE")
public Response insertDocument(@FormDataParam("file") File file, @FormDataParam("file") FormDataContentDisposition fileDetail,
// my stuff
```

i can see MIMExxxxx.tmp which jersey create for multipart request with the correct size in tocat temp but
Second rep23xxxx which is created for @FormDataParam("upload") File file is getting with 0kb
so i'm not able to upload.

I have trying with Jersey 2.2
It works fine for me with Jersey 1.7

can u please help me in this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.