New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add direct download option when serving static files #1729
Add direct download option when serving static files #1729
Conversation
Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
9249c01
to
9570adc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lian1230
Please provide some unittests cases for this feature.
And don't forget the document repository https://github.com/gofiber/docs |
Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
* enable download for app.Static wording * Add unit test. Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
Explain the details for making this change. What existing problem does the pull request solve?
For HTML element's download attribute, serverside header response must include "Content-Disposition: attachment" for cross origin request.