C# Windows 服务中上传图片提示OK,但是七牛服务器没有图片,求帮助

    附上上传图片方法:
    /// <summary>
    /// 七牛云存储,上传本地文件
    /// </summary>
    /// <param name="fname">文件路径</param>
    public static void upload(string fname)
    {
        Config.ACCESS_KEY = "XXXXXXXXXXXXXXXXXX";
        Config.SECRET_KEY = "XXXXXXXXXXXXXXXXXXX";
        string bucket = "XXXXXXX";
        try
        {
            var policy = new PutPolicy(bucket, 3600);
            string upToken = policy.Token();
            PutExtra extra = new PutExtra();
            IOClient client = new IOClient();
            PutRet r = client.PutFile(upToken, fname, fname, extra);
            log.Info("上传文件状态:" + r.StatusCode.ToString());
            Thread.Sleep(5000);
        }
        catch (Exception e)
        {
            log.Error("上传到七牛异常", e);
        }
    }
    
    附上执行后的日志信息:
    

查看回复