eclipse-ee4j / eclipse-ee4j/jersey
File upload is broken with IE 11 and Edge: Backslashes in Content-Disposition filename
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Original issue and discussion:
[https://java.net/jira/browse/JERSEY-759](https://java.net/jira/browse/JERSEY-759)
IE11 and Microsoft Edge both still send non-standard conforming filename:
> -----------------------------7db13314200d0
> Content-Disposition: form-data; name="file"; filename="C:\tmp\test.txt"
> Content-Type: application/octet-stream
> What my application gets when reading the filename is "C:tmptest.txt"
This could be fixed like the original issue by matching the User-Agent by adding matching for "Trident/" and "Edge/"
#### Environment
Windows NT 10.0; WOW64
Internet Explorer 11.51.14393.0
Microsoft Edge 38.14393.0.0
#### Affected Versions
[2.22.1, 2.22.2]
Contributor guide
Assessment
This issue has not been assessed yet.