So I have the URL as string (in this case a JPG but would like a general procedure for any file type if possible) and I have the file path as string where I want to save the fil
With Swift 4, the code will be:
if let url = URL(string: myURLstring) { let imageDataFromURL = try Data(contentsOf: url) }