//library/com.uploadcare.android.library.api/UploadcareClient/copyFileRemoteStorageAsync
copyFileRemoteStorageAsync
[androidJvm]
Content
fun copyFileRemoteStorageAsync(context: Context, source: String, target: String? = null, makePublic: Boolean = true, pattern: String? = null, callback: CopyFileCallback? = null)
More info
Copy file to remote storage. Copy original files or their modified versions to a custom storage. Source files MAY either be stored or just uploaded and MUST NOT be deleted.
Parameters
androidJvm
Name | Summary |
---|---|
callback | callback CopyFileCallback with either an UploadcareCopyFile response or a failure exception. |
context | Application context. @link android.content.Context |
makePublic | MUST be either true or false. true to make copied files available via public links, false to reverse the behavior. |
pattern | The parameter is used to specify file names Uploadcare passes to a custom storage. In case the parameter is omitted, we use pattern of your custom storage. Use any combination of allowed values. |
source | File Resource UUID or A CDN URL. |
target | Identifies a custom storage name related to your project. Implies you are copying a file to a specified custom storage. Keep in mind you can have multiple storages associated with a single S3 bucket. |