Need help with syntax to find a file in the documents directory not the main bundle so that I can upload the file with:
Alamofire.upload(fileUrl, to: serverUrl, method: .post)
The example in Alamofire documentation shows taking the file from the main bundle. I can use
var data = try Data(contentsOf: fileUrl)
But I do not want to convert file to data for upload. Is there a way I can overload the data and pass it? Any help/suggestions will be appreciated.
Thank you.