             dispatch_async(dispatch_get_main_queue(), {
                 self.removeTemporaryUploadFiles()
                 self.isUploadingFile = false
+                println(response as! NSHTTPURLResponse)
+                println(anyObject)
+                let s = NSString(data: anyObject as! NSData, encoding: NSASCIIStringEncoding)
+                println(s)
+
                 if self.isUnauthorized(response as! NSHTTPURLResponse?) {
                     self.removeAccessTokenUsedInLastRequest()
 //                    self.uploadFile(url: url, folder: folder, success: success, failure: failure)

            formData.appendPartWithFormData(data, name:"subject")

            let fileData = NSData(contentsOfURL: fileURL)
            formData.appendPartWithFileData(fileData, name:"file", fileName: "test.html", mimeType:"text/html")
            }, error: nil)
        urlRequest.setValue("*/*", forHTTPHeaderField: "Accept")
        fileTransferSessionManager.setTaskDidCompleteBlock { (session, task, error) -> Void in
        }

        fileTransferSessionManager.setTaskDidSendBodyDataBlock { (session, task, bytesSent, totalBytesSent, totalBytesExcpectedToSend) -> Void in

                assert(false, "NO oauthtoken present in app. Log out!")
            }
            // has found higher level oAuthToken that is outdated, try refreshing a lower level token
        }
    }

