I’m trying to upload a file with a non-ASCII name using the Coda API. To help Coda recognize the correct file name, I’m including the following Content-Disposition
header:
Content-Disposition: attachment; filename="010. trak 10.mp3"; filename*=UTF-8''010.%20%D8%AA%D8%B1%D8%A7%D9%83%2010.mp3
According to the standard, filename*
should be used for the actual file name (including non-ASCII characters), while filename
is just a fallback. However, Coda only seems to use the filename
parameter and ignores the filename*
, which results in the incorrect file name being used.