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)); }
public CloudFile UpLoadFile(string prefix, string filepath) { return(QiniuCloud.UploadFile(prefix, filepath)); }
public CloudFile UpLoadFile([FromBody] QiniuDelByPathParmDto obj) { return(QiniuCloud.UploadFile(obj.prefix, obj.filepath)); }
public IActionResult UpLoadFile([FromBody] QiniuDelByPathParmDto obj) { return(Ok(QiniuCloud.UploadFile(obj.prefix, obj.filepath))); }