Skip to content

Commit

Permalink
More minor edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
russelljtdyer committed Feb 28, 2025
1 parent cddc6f8 commit 2d6f6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions articles/hilla/guides/uploads-downloads.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Transferring files between the client and server is a common requirement in web

Hilla supports the https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/multipart/MultipartFile.html[MultipartFile] class from Spring to handle file uploads. It maps to the standard https://developer.mozilla.org/en-US/docs/Web/API/File[File] interface in the generated TypeScript code.

The following example demonstrates how to implement such a service and connect it to the <</components/upload#,Upload>> component in a view.
The following example demonstrates how to implement such a service and connect it to the <</components/upload#,Upload>> component in a view:

[.example]
--
Expand All @@ -36,7 +36,7 @@ include::{root}/src/main/java/com/vaadin/demo/fusion/upload/UploadService.java[t

== Downloading Files

Hilla endpoints only respond to POST requests and don't support file downloads. Since Hilla applications use Spring, though, you can leverage Spring's capabilities to implement file downloading.
Hilla endpoints only respond to `POST` requests and don't support file downloads. Since Hilla applications use Spring, though, you can leverage Spring's capabilities to implement file downloading.

Select the server mapping that best suits your application. Then create an ad-hoc endpoint to handle file downloads.

Expand Down

0 comments on commit 2d6f6dc

Please sign in to comment.