eclipse-ee4j / eclipse-ee4j/jersey

File upload is broken with IE 11 and Edge: Backslashes in Content-Disposition filename

Open
#3,431 6 comments 0 reactions 0 assignees View on GitHub
Component: media edge ie ie11 Priority: Major Type: Bug upload
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

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.