Skip to content

Commit 80cc8b3

Browse files
TatuLundjouni
andauthored
Add info about files behavior (#4422)
* Add info about files behavior * Update articles/components/upload/index.adoc Co-authored-by: Jouni Koivuviita <jouni@vaadin.com> * Update articles/components/upload/index.adoc Co-authored-by: Jouni Koivuviita <jouni@vaadin.com> * Update articles/components/upload/index.adoc Co-authored-by: Jouni Koivuviita <jouni@vaadin.com> --------- Co-authored-by: Jouni Koivuviita <jouni@vaadin.com>
1 parent 5815072 commit 80cc8b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/components/upload/index.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@ include::{root}/frontend/demo/component/upload/react/upload-error-messages.tsx[r
567567
endif::[]
568568
--
569569

570+
=== Component State
571+
572+
To conserve resources, the files themselves aren't part of the component's server-side state. This has significant implications for component behavior. Removing the Upload component from the layout means that the files in the browser memory are lost. The same applies when reloading the page. Read more about <</components/upload/file-handling#, file handling>>.
573+
574+
The user interface, including the Upload component, should take this into account. For example, if you expect that the user will refresh the page, you can display a message to the user that files needs to be selected again, if this wasn't the first time the page was rendered.
570575

571576
== Related Components
572577

0 commit comments

Comments
 (0)