Interface ClientFileUploader
-
- All Superinterfaces:
ClientService,java.io.Serializable
public interface ClientFileUploader extends ClientService
The ClientFileUploader service allows uploading client-side files to the server.- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabort(java.lang.String uploadId)Abort the upload with the given id.java.lang.Stringsubmit(java.lang.String url, ClientFile[] clientFiles)Starts to upload the providedClientFileto the given URL using HTTP POST.
-
-
-
Method Detail
-
submit
java.lang.String submit(java.lang.String url, ClientFile[] clientFiles)Starts to upload the providedClientFileto the given URL using HTTP POST. If no files are provided, nothing happens.- Parameters:
url- the URL to upload to, must not benullor emptyclientFiles- client-side files, must not benull- Returns:
- the upload id that can be used to abort it.
- Since:
- 3.10
- See Also:
ClientFileTransfer
-
abort
void abort(java.lang.String uploadId)
Abort the upload with the given id. If such upload does not exists or already finished, nothing happens.- Parameters:
uploadId- the upload id returned bysubmitmethod.- Since:
- 3.10
-
-