I'm using alamofire to do post to server, I wanted to know how to send an object that has an img inside it.
I saw the following excerpt to upload the image
let fileURL = NSBundle.mainBundle().URLForResource("Default", withExtension: "png")
Alamofire.upload(.POST, "https://httpbin.org/post", file: fileURL)
But I still can not figure out how to get fileURL
If someone can inform me if it is possible to send a complete object with a photo or if I have to send it separately and how do I get fileURL