I am receiving an error when I attempt to upload my video to Parse. The error is client side and is that the variable path is found nil. Perhaps I am declaring this wrong or using pathForResource wrong but I appreciate any help that I would be able to get.
func Upload() {
var path = NSBundle.mainBundle().pathForResource("big_buck_bunny_720p_2mb.mp4", ofType: "mp4")
var videodata: NSData?
videodata = NSData.dataWithContentsOfMappedFile(path!) as? NSData
let file = PFFile(name:"capturedVideo", data:videodata!)
file!.saveInBackground()
}