[GH-ISSUE #201] URL-encoded filename when downloading in Safari #102

Closed
opened 2026-04-08 16:50:21 +03:00 by zhus · 0 comments
Owner

Originally created by @luaneko on GitHub (Mar 30, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/201

Problem

Files downloaded from dufs in Safari have URL-encoded name which is not decoded by the browser automatically. Relevant StackOverflow issue.

For example, given a file named "Track 01.flac":

image

The name of the downloaded file remains URL-encoded "Track%2001.flac":

image

Headers returned by the file response:

HTTP/2 200 
accept-ranges: bytes
content-disposition: inline; filename="Track%2001.flac"
content-type: audio/flac
...

Environment:

  • Dufs version: 0.33.0
  • Browser/Webdav Info: Safari 16.3 (18614.4.6.1.6)
  • OS Info: Ventura 13.2.1 (22D68)
Originally created by @luaneko on GitHub (Mar 30, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/201 **Problem** Files downloaded from dufs in Safari have URL-encoded name which is not decoded by the browser automatically. [Relevant StackOverflow issue.][1] For example, given a file named `"Track 01.flac"`: <img width="578" alt="image" src="https://user-images.githubusercontent.com/27663662/228867574-917588c1-bdc4-4f40-bcf3-e125d8da2ba5.png"> The name of the downloaded file remains URL-encoded `"Track%2001.flac"`: <img width="307" alt="image" src="https://user-images.githubusercontent.com/27663662/228867409-1a883ecb-2184-46d7-8ebd-09d72acdfd2e.png"> Headers returned by the file response: ```http HTTP/2 200 accept-ranges: bytes content-disposition: inline; filename="Track%2001.flac" content-type: audio/flac ... ``` **Environment:** - Dufs version: 0.33.0 - Browser/Webdav Info: Safari 16.3 (18614.4.6.1.6) - OS Info: Ventura 13.2.1 (22D68) [1]: https://stackoverflow.com/a/6745788
zhus closed this issue 2026-04-08 16:50:21 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#102