Пример #1
0
        public IActionResult QiniuFile()
        {
            var files = Request.Form.Files[0];
            var data  = _qiniuCloud.UploadFile(files, "article/");
            var url   = _qiNiuOssModel.ImgDomain + data;

            //TinyMCE 指定的返回格式
            return(Ok(new { location = url }));
        }
        public ApiResult QiniuFile()
        {
            var files = Request.Form.Files[0];
            var data  = _qiniuCloud.UploadFile(files, "advList/");
            var url   = _qiNiuOssModel.ImgDomain + data;

            //TinyMCE 指定的返回格式
            return(new ApiResult(data: url));
        }
Пример #3
0
 public CloudFile UpLoadFile(string prefix, string filepath)
 {
     return(QiniuCloud.UploadFile(prefix, filepath));
 }
Пример #4
0
 public CloudFile UpLoadFile([FromBody] QiniuDelByPathParmDto obj)
 {
     return(QiniuCloud.UploadFile(obj.prefix, obj.filepath));
 }
Пример #5
0
 public IActionResult UpLoadFile([FromBody] QiniuDelByPathParmDto obj)
 {
     return(Ok(QiniuCloud.UploadFile(obj.prefix, obj.filepath)));
 }