[PR #1676] [MERGED] Download files to their original filename #15989

Closed
opened 2025-11-02 11:59:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1676
Author: @silverwind
Created: 5/4/2017
Status: Merged
Merged: 5/5/2017
Merged by: @lunny

Base: masterHead: download-filename


📝 Commits (1)

  • 2ef6252 Download files to their original filename

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 routers/repo/download.go (+2 -0)

📄 Description

This removes the path from download filenames, so dir/file.txt now downloads to file.txt instead of dir-file.txt (browsers replace slashes with dashes).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1676 **Author:** [@silverwind](https://github.com/silverwind) **Created:** 5/4/2017 **Status:** ✅ Merged **Merged:** 5/5/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `download-filename` --- ### 📝 Commits (1) - [`2ef6252`](https://github.com/go-gitea/gitea/commit/2ef62520be6388e1cadb270f8d79a6f84ee71fd9) Download files to their original filename ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/download.go` (+2 -0) </details> ### 📄 Description This removes the path from download filenames, so `dir/file.txt` now downloads to `file.txt` instead of `dir-file.txt` (browsers replace slashes with dashes). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:59:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15989