如果我使用以下功能
func onCloudinaryCompletion(successResult:[AnyHashable: Any]?, errorResult:String?, code:Int?, idContext:Any?) {
print("Error-\(errorResult)")
print("Code-\(code)")
print("successResult-\(successResult)")
if (successResult != nil)
{
let publicURL = successResult?["secure_url"] as! String
print("now cloudinary uploaded, public url is: \(publicURL), ready for uploading media")
sendPhotoReport(publicURL)
}
我得到以下输出
Error-Optional("Invalid Signature 0e791bbbd45acf18cd226688ad9197d560f9ea4d. String to sign - \'timestamp=1476729611\'.")
代码可选(401) successResult比零
所以我无法在cloudinary中上传图片