public async Task <IActionResult> UploadFileAsync(IFormFile file)
        {
            if (file.Length == 0)
            {
                return(Ok(new ApiResponse(code: CodeAndMessage.UnKnownError)));
            }
            string          SuffixName      = System.IO.Path.GetExtension(file.FileName);
            string          fileName        = DateTime.Now.Ticks.ToString() + "_ID1" + SuffixName;
            FastDFSProvider fastDFSProvider = new FastDFSProvider();
            string          url             = await fastDFSProvider.StoreObjectStreamAsync(file.OpenReadStream(), fileName);

            return(Ok(new ApiResponse(new { url })));
        }
        public async Task <IActionResult> UploadFileMore(List <IFormFile> files)
        {
            if (files.Count == 0)
            {
                return(Ok(new ApiResponse(code: CodeAndMessage.UnKnownError)));
            }
            Dictionary <string, string> UrlList = new Dictionary <string, string>();
            int i = 0;

            foreach (var item in files)
            {
                string          SuffixName      = System.IO.Path.GetExtension(item.FileName);
                string          fileName        = DateTime.Now.Ticks.ToString() + "_ID1" + SuffixName;
                FastDFSProvider fastDFSProvider = new FastDFSProvider();
                string          url             = await fastDFSProvider.StoreObjectStreamAsync(item.OpenReadStream(), fileName);

                UrlList.Add("File" + i++, url);
            }
            return(Ok(new ApiResponse(UrlList)));
        }