1
Completed

utf8 encoded filenames

Some providers implement the filename* spec (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) which contains the correctly encoded utf8 chars.

Here's an example: curl -I "https://content.dropboxapi.com/apitl/1/AeZwXtWZQr33YYhywOjP3pjXJoMZa9YSZsxhyaRNaDKdI5XPYeHP8lStv7kTpOzdVFJ60YpM5E1gkXf10A3KjUAFodcgQNjduNmV8f6tyRxZXSNbFWEX3aiW3IJOLLepy1OJUx7a7tNSCUv1G4nDha2rMgryHNQ9len-iPsnkgMQUL4x19A5xAyHKILQMh_taXF-bdE8T7NU86TkhV-_lMTqrXI25ROG71UAWJaA8rdt76tBBEDtxWw06zKh4QLc9PeR3a_7nYUsFfGhc2UVUO962SuSkNP3KV4FfTzjlaVechv7aNpEqS4-8ltAoMDgQYHtJ70c_5NDZIrdhOAtm0SKQqkSSftUUQ7DrI0ojZ1mjaOubQxT7PGa3wl1uI1wT2Rrsd-ReWbMjAbudB42l75oQCKUdJf7wEZ1lH5DbF51bCjERZ27_PPYctRkgDKBMFlgQtK-bGj-WsfpI4JzyN0Y"

Would be awesome if Join could use this filename* param (if present) for writing the file.

Thanks again for all your hard work on this app - I've been a loyal user for many years and still have found nothing that comes close to it :)

2 replies

Hi ,

I'd recommend Join to use that header when present as it indicates there is a utf8 encoded filename which will be more correct than the plain, ascii text version that renders utf8 chars as '?' marks.

Sorry, I just realized the example file was deleted in the meantime :(

Here's another version:

curl -I 'https://uc96766847acc06f7c49bcc58ac0.dl.dropboxusercontent.com/cd/0/get/A8UK_BnGOG3Es7hl98ihX9qo5uRqzPaH573MSLWUTPfQ22x9lJziismd76X2GuZ5sc3uLJPdnadYwSsJG2ij68giByrMjiSvr-qAzsD6sArZdmJGzjZO0h7pnSTuTfEI2HU/file?dl=1'

Greetings from Munich,

Dan

Oh, do you mean when downloading files? :)

Yep - I use Join to push files to my phone. Works awesome, but noticed that if the file has utf8 chars, the title's all wonky.

Thanks! :) Seems like that link doesn't work for me though unfortunately. Is it still working for you?

indeed it doesn't. Lemme give you the entire response header with a new link:

```$ curl -I 'https://uc9d18b1c88a4eb65b6826befdb0.dl.dropboxusercontent.com/cd/0/get/A8YNj5hYLryob54d__3vPuvpwT_Lr0TMZqhlnjHjtdeOmJuXK2AdfQVYwg6ofPX04jtqNhrmgBz4QX8O7tBL2vtaQ2E7RbpWPQKf1dsxUCcdPO1bU7u54kuYda2P5IXS5_Q/file'
HTTP/2 200
server: envoy
date: Tue, 28 Jul 2020 14:05:32 GMT
content-type: application/binary
content-length: 2909762
cache-control: max-age=60
pragma: public
x-dropbox-request-id: f66e41bd0b634112b45b81fe63a389d7
x-robots-tag: noindex, nofollow, noimageindex
referrer-policy: no-referrer
etag: 1595752237678036d
x-content-type-options: nosniff
accept-ranges: bytes
content-disposition: attachment; filename="Shia LaBeouf Just Do It Motivational Speech (Original Video by LaBeouf, R?nkk? & Turner).mp4"; filename*=UTF-8''Shia%20LaBeouf%20Just%20Do%20It%20Motivational%20Speech%20%28Original%20Video%20by%20LaBeouf%2C%20R%C3%B6nkk%C3%B6%20%26%20Turner%29.mp4
content-security-policy: sandbox
x-webkit-csp: sandbox
x-content-security-policy: sandbox
vary: Origin
x-server-response-time: 454
strict-transport-security: max-age=15552000; includeSubDomains
strict-transport-security: max-age=15552000; includeSubDomains
x-robots-tag: noindex, nofollow, noimageindex```

Ok, added!

Can you please try this version? https://drive.google.com/file/d/18V276YwSlfc3voV1s-SUxdCfoP9fCerp/view?usp=sharing

Let me know how it works!

works perfectly now! Thank you, 

Nice! :) Glad it works!

Hi. Thanks for the request/report! Can you clarify when exactly do you mean? When should Join use that header exactly? Thanks in advance!