             data.appendData( "\r\n--\(boundary)\r\n".dataUsingEncoding(NSUTF8StringEncoding)! )
             data.appendData( "Content-Disposition: form-data; name=\"\(fileUploadInfo.name)\"; filename=\"\(fileUploadInfo.fileName)\"\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
             data.appendData( "Content-Type: \(fileUploadInfo.mimeType)\r\n\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
-            if fileUploadInfo.data != nil {
-                data.appendData( fileUploadInfo.data! )
-            }
-            else if fileUploadInfo.url != nil, let fileData = NSData(contentsOfURL: fileUploadInfo.url!) {
+            if let fileData = fileUploadInfo.data {
+                data.appendData( fileData )
+            }
+            else if let url = fileUploadInfo.url, let fileData = NSData(contentsOfURL: url) {
                 data.appendData( fileData )
             }
             else { // ToDo: report error

        
        data.appendData("\r\n--\(boundary)--\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
        
        return Alamofire.upload( request, data: data )
    }
    
}

        self.url = url
        self.fileName = name
        self.mimeType = "application/octet-stream"
        if let mimeType = mimeType {
            self.mimeType = mimeType
        }
        if let _name = url.lastPathComponent {
            fileName = _name
        }
        if let mimeType = mimeType, let _extension = url.pathExtension {
            switch _extension.lowercaseString {
            case "jpeg", "jpg":
                self.mimeType = "image/jpeg"
                
