Answers for "how to get file size from web url swift"

0

swift file size from url

do {
    let resources = try url.resourceValues(forKeys:[.fileSizeKey])
    let fileSize = resources.fileSize!
    print ("\(fileSize)")
} catch {
    print("Error: \(error)")
}
Posted by: Guest on December-15-2020

Code answers related to "how to get file size from web url swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language