public IActionResult GetFile() { MyFileStream readStream = new MyFileStream(@"XXX/A.XX", FileMode.Open); return new FileStreamResult(readStream, "application/octet-stream"); } public class MyFileStream : FileStream { /// <summary>…
public void DownFile(string guid) { var fileTransfer = new FileTransfer(); var directoryPath = Path.Combine(InitInfo.Config_GarbagePath, "FileImport", guid); fileTransfer.ChunkTransfer(System.Web.HttpContext.Current, GetDownFilePath(directoryPat…
<?phprequire_once(dirname(__FILE__)."/include/common.inc.php");AjaxHead(); $dsql->SetQuery("Select id as ID From `dede_arctype` where reid=".$reid); $dsql->Execute(); $channels = Array(); while($row = $dsql->Get…