Skip to content

Conversation

@jagadam97
Copy link
Contributor

Description

in download function we are encoding file paths and double encoding files query params value.
Apache HTTP server by default doesn't allow encoded slashes in path and throws 404 error. Nginx by default sends the request to server.

this PR fixes the encoding so the filebrowser works seamlessly with Apache HTTP server and Nginx server without any manual configuration.

Additional Information

I have tested this change locally with NGINX and Apache server

closes #5651

Checklist

Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See GitHub Help: Closing issues using keywords.

  • I am aware the project is currently in maintenance-only mode. See README
  • I am aware that translations MUST be made through Transifex and that this PR is NOT a translation update
  • I am making a PR against the master branch.
  • I am sure File Browser can be successfully built. See builds and development.

@jagadam97 jagadam97 requested a review from a team as a code owner January 1, 2026 10:16
Copy link
Member

@hacdias hacdias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'm not sure why we were double encoding them, but it doesn't seem to make sense.

@hacdias hacdias merged commit ffa893e into filebrowser:master Jan 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

When sharing a folder, the top download button does not work for a single file

2 participants