aws-sdk-ios
aws-sdk-ios copied to clipboard
WiFi only uploading
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)
}