Skip to main content

transfer_upload

Function transfer_upload 

Source
pub async fn transfer_upload(
    profile_id: ProfileId,
    bucket: BucketId,
    key: String,
    source_path: String,
    queue: State<'_, TransferQueueHandle>,
    pool: State<'_, S3ClientPoolHandle>,
    locks: State<'_, LockRegistryHandle>,
    store: State<'_, ProfileStoreHandle>,
    multipart_table: State<'_, MultipartTableHandle>,
    log: State<'_, NotificationLogHandle>,
    settings: State<'_, SettingsHandle>,
    channel: AppHandle,
) -> Result<String, AppError>
Expand description

Initiate an upload of source_path to bucket/key.

Returns the request_id (UUID v4) immediately.