In my POST request , my URL throws an "unexpectedly found nil while unwrapping an Optional value" error. This is what it looks like:
let imageUrl = NSURL(string: "http://88.143.30.77/app_backend/public/api/v1/image?_r={rec_id}")!
let request = NSMutableURLRequest(URL: imageUrl)
request.HTTPMethod = "POST"
If I remove the "?_r={rec_id}" part in the URL, the error goes away, but I have no idea how to fix it, because that's the URL I need to send my image to. Any help is much appreciated!