| Constructor and Description |
|---|
UrlUploader(Client client,
java.lang.String sourceUrl)
Create a new uploader from a URL.
|
| Modifier and Type | Method and Description |
|---|---|
UrlUploader |
store(boolean store)
Store the file upon uploading.
|
File |
upload()
Synchronously uploads the file to Uploadcare.
|
File |
upload(int pollingInterval)
Synchronously uploads the file to Uploadcare.
|
public UrlUploader(Client client, java.lang.String sourceUrl)
client - Uploadcare clientsourceUrl - URL to upload frompublic File upload() throws UploadFailureException
upload in interface UploaderUploadFailureExceptionpublic UrlUploader store(boolean store)
public File upload(int pollingInterval) throws UploadFailureException
pollingInterval - Progress polling interval in msUploadFailureException