- π΅π±Poland Pozi
An interesting article explaining the problem in details:
https://www.jmix.io/blog/utf-8-in-http-headers/
I would like to upload files with UTF-8 characters in the filename using jsonapi. I expected to be able to do this by using a filename*=UTF-8''
parameter in the Content-Disposition
header, but found that it's not supported yet.
Upload a file for an entity field using jsonapi with filename*
in the Content-Disposition
header. Example headers:
{
'Accept': 'application/vnd.api+json',
'Content-Type': 'application/octet-stream',
'Content-Disposition': 'file; filename="example.txt"; filename*=UTF-8\'\'ex%C3%A4mple.txt'
}
The filename*
parameter is ignored and the file will be named example.txt instead of exΓ€mple.txt. Removing the filename
parameter throws an error because it is required.
Support and give preference to the filename*
parameter as described at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Dispos...
Active
11.0 π₯
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
An interesting article explaining the problem in details:
https://www.jmix.io/blog/utf-8-in-http-headers/