title: Swift: take a picture and upload to Parse; NSInternalConsistencyException
body: <p>In my app, I have a button that opens a camera view. When I take a picture and "use picture", I save that image to a variable.
  That <code>UIImage</code> is then being converted to <code>NSData</code> with <code>UIImageJPEGRepresentation</code> and sent to Parse as a <code>PFFile</code>.</p>
  
  <p>Now, when I run the app on my actual device, when I press the upload to Parse button, I receive this error: <code>*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not save file data for buildingCam.jpg : (null)'</code></p>
  
  <p>This is my Swift code:</p>
  
  <pre><code>@IBAction func BuildingCamMainPressed(sender: AnyObject) {
      var jpegImage = UIImageJPEGRepresentation(image, 1.0)
      let file = PFFile(name: "buildingCam.jpg", data: jpegImage)
  
      file.save()
  
      var buildingCam = PFObject(className: "buildingCam")
      buildingCam["latitude"] = myLocation.last?.coordinate.latitude
      buildingCam["longitude"] = myLocation.last?.coordinate.longitude
  
      if(BuildingCamText.text.isEmpty){
          println("Geen tekst")
          BuildingCamText.textColor = UIColor.redColor()
          BuildingCamText.text = "Vul iets in"
      } else {
          BuildingCamText.textColor = UIColor.blackColor()
          buildingCam["description"] = BuildingCamText.text
      }
      buildingCam["file"] = file
      buildingCam.save()
  }
  </code></pre>