diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2020-04-03 13:24:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 13:24:11 +0300 |
commit | 240cdce985bfc08a6e2869d1de52718227706640 (patch) | |
tree | d0696afd50c4d71e8304f0dbc0e1ed3f0fec7e40 /shared | |
parent | 52013fc6c6ccc0891df79b7fa2c7cce1b9a4f036 (diff) | |
download | vaadin-framework-240cdce985bfc08a6e2869d1de52718227706640.tar.gz vaadin-framework-240cdce985bfc08a6e2869d1de52718227706640.zip |
Prevent upload if no file is selected. (#11939)
Fixes #10419
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/upload/UploadClientRpc.java | 5 | ||||
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/upload/UploadServerRpc.java | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/upload/UploadClientRpc.java b/shared/src/main/java/com/vaadin/shared/ui/upload/UploadClientRpc.java index 5e29d517b8..1801eb0e72 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/upload/UploadClientRpc.java +++ b/shared/src/main/java/com/vaadin/shared/ui/upload/UploadClientRpc.java @@ -17,10 +17,13 @@ package com.vaadin.shared.ui.upload; import com.vaadin.shared.communication.ClientRpc; +/** + * Server-to-client RPC interface for Upload. + */ public interface UploadClientRpc extends ClientRpc { /** - * Forces the upload the send selected file to the server. + * Instructs the upload component to send the selected file to the server. */ void submitUpload(); } diff --git a/shared/src/main/java/com/vaadin/shared/ui/upload/UploadServerRpc.java b/shared/src/main/java/com/vaadin/shared/ui/upload/UploadServerRpc.java index 59ebe9c8da..d0e89e8dee 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/upload/UploadServerRpc.java +++ b/shared/src/main/java/com/vaadin/shared/ui/upload/UploadServerRpc.java @@ -17,6 +17,9 @@ package com.vaadin.shared.ui.upload; import com.vaadin.shared.communication.ServerRpc; +/** + * Client-to-server RPC interface for Upload. + */ public interface UploadServerRpc extends ServerRpc { /** |