//library/com.uploadcare.android.library.upload/UrlUploader/upload

upload

[androidJvm]
Content
open override fun upload(progressCallback: ProgressCallback?): UploadcareFile
More info

Synchronously uploads the file from provided URL to Uploadcare.

Parameters

androidJvm

Name Summary
progressCallback

, progress will be reported on the same thread upload started.

[androidJvm]
Content
fun upload(pollingInterval: Long, progressCallback: ProgressCallback? = null): UploadcareFile
More info

Synchronously uploads the file to Uploadcare.

The calling thread will be busy until the upload is finished.

Return

An Uploadcare file

Parameters

androidJvm

Name Summary
pollingInterval

Progress polling interval in ms, default is 500ms.

progressCallback

, progress will be reported on the same thread upload started.