             default:
                 self.mimeType = "application/octet-stream"
             }
-        }
-    }
-    
-    init( name: String, withData data: NSData, withMimeType mimeType: String ) {
+        // }
+    }
+    
+    init( name: String, withData data: Data, withMimeType mimeType: String ) {
         self.name = name
         self.data = data
         self.fileName = name

    ///
    /// @param    parameter    The parameter to associate with the file content in the `Content-Disposition` HTTP header.
    ///
    public func addHeadersFrom( map map: [String: String!] ) {
        for (key,value) in map {
            headers[key] = value
        }

    ///
    /// @param    mimeType     The MIME type to associate with the data in the `Content-Type` HTTP header.
    ///
    open func addFileURL( _ url: URL, withName name: String, withMimeType mimeType: String? = nil ) {
        files.append( ButterflyFileUploadInfo( name: name, withFileURL: url, withMimeType: mimeType ) )
    }
    
