private ViewDataUploadFilesResult UploadResult(string fileName, long fileSizeInBytes) { string getType = MimeMapping.GetMimeMapping(fileName); var result = new ViewDataUploadFilesResult() { name = fileName, size = fileSizeInBytes, type = getType, url = _filesHelper.UrlBase + fileName, deleteUrl = _filesHelper.DeleteUrl + fileName, thumbnailUrl = _filesHelper.CheckThumb(getType, fileName), deleteType = _filesHelper.DeleteType, }; return(result); }