Skip to content
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

File download example using Spring MVC #4065

Open
platosha opened this issue Jan 14, 2025 · 0 comments · May be fixed by #4101
Open

File download example using Spring MVC #4065

platosha opened this issue Jan 14, 2025 · 0 comments · May be fixed by #4101

Comments

@platosha
Copy link
Contributor

platosha commented Jan 14, 2025

Add a Hilla guide with a download request handler example.

Hilla does not support HTTP GET request handlers at the moment, but downloads in Hilla applications could still be implemented using Spring MVC and Spring Security for authentication.

Use case: as a developer, I want to enable application users to download files in a secure way from the server. I want my client-side view to show the server generated download link for the specific file, so that the file download starts when the user clicks the link.

The download response is using the MIME file type and the file name provided by the server.

Live example is not necessary, but let us still put the related Java code to the docs repo.

@cromoteca cromoteca self-assigned this Feb 4, 2025
@cromoteca cromoteca linked a pull request Feb 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants