Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
3.0.16.Final
-
None
Description
Currently when you upload file from HTML multipart form RESTEASY does not support file names in non-latin characters.
For example if I try to upload file named in Russian ("ัะตัั.txt") sending request in UTF-8 multipart header has it's name as "????????.txt".
org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataReader is an consumer.
File upload form JSP example:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test</title>
</head>
<body>
<form method="POST" action="/upload/file" enctype="multipart/form-data">
<input type="file" name="uploaded" />
<input type="submit" name="sbm" value="submit" />
</form>
</body>
</html>
Attachments
Issue Links
- duplicates
-
RESTEASY-799 multipart-provider does not respect header charset in body parts
- Closed