     
     weak var delegate: ImageUploaderDelegate?
     
-    func uploadData(data: NSData, toSignedUrl signedUrlString: URLStringConvertible, handler: UploadActionn? = nil){
+    private func uploadData(data: NSData, toSignedUrl signedUrlString: URLStringConvertible, handler: UploadActionn? = nil){
         let fileURL = writeDataToFile(data)
         
         //Content-Type:image/png
-        //Content-Type:image/png
-        Alamofire.request
-        
-        Alamofire.upload(.POST, signedUrlString, headers: ["Content-Type":"image/png"], file: fileURL)
+        //Content-Type:image/png   headers: ["Content-Type":"image/png"]
+        Alamofire.upload(.PUT, signedUrlString, headers: ["Content-Type":"image/png"], file: fileURL)
             .progress { bytesWritten, totalBytesWritten, totalBytesExpectedToWrite in
                 //print(totalBytesWritten)
                 let percent:Double = (Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)) * 100

                }
            }
            .validate()
            .responseJSON { response in
                debugPrint(response)
        }
        
        

         */
    }
    
    private func uploadData(data: NSData, toBucket: String, key: String, handler: UploadActionn? = nil){
        //TODO: bucket method is pending
    }
    
