예제 #1
0
        public IActionResult Download(int id)
        {
            string filePath = _fileLogic.DownloadFileAsync(id, _uploads);

            if (filePath == null)
            {
                return(NotFound());
            }

            return(PhysicalFile(filePath, MimeTypes.GetMimeType(filePath), Path.GetFileName(filePath)));
        }