aws-sdk-ios icon indicating copy to clipboard operation
aws-sdk-ios copied to clipboard

WiFi only uploading

Open oleg-moseyko opened this issue 3 years ago • 0 comments

Which AWS Services is the feature request for? AWSS3TransferUtility

Is your feature request related to a problem? Please describe. I would like to have option in my app to have ability for user to upload any image/video with:

  • WiFi only
  • WiFi or Cellular

Describe the solution you'd like it would be good to have setting: onlyWiFi.

if onlyWiFi == true {
    if isAppConnectedViaWiFiWithInternet == true { start uploading process} 
    else { waiting for wifi with Internet is connected and start uploading process }
}

Code example

TransferUtility.uploadUsingMultiPart(
                data: assetData,
                bucket: bucket,
                key: key,
                contentType: meta.mimeType,
                expression: expression,
                onlyWiFi: true,  //<<<<<<<<<<
                completionHandler: AWSS3Transfer.shared.completionHandler)
                .continueWith(block: continueWithBlock)
        }

oleg-moseyko avatar Sep 03 '21 11:09 oleg-moseyko