Skip to content

Resolve "Ability to download single file"

What does this MR do?

It adds a new feature whereas a single file in a repository can be downloaded.

Still a WIP since I am not yet able to handle the case whereas the file to be downloaded is a dotfile. The file extension is being changed to txt. Edit: removed WIP since I do not think it's possible to solve that one.

Are there points in the code the reviewer needs to double check?

I am using the download attribute of the a tag which is currently not supported by some browsers. However, I found that the download for the whole repository is using it as well so I continued with this.

Why was this MR needed?

Resolves #23705 (closed)

Screenshots (if relevant)

Chrome Firefox

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #23705 (closed)

Edited by Dimitrie Hoekstra

Merge request reports