コード例 #1
0
        // Processing the Download operation
        public ActionResult Download(string downloadInput)
        {
            FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput);

            //Invoking download operation with the required paramaters
            // path - Current path where the file is downloaded; Names - Files to be downloaded;
            return(operation.Download(args.Path, args.Names));
        }
コード例 #2
0
        public object DownloadFile(string downloadInput)
        {
            FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput);

            //update FileAttribute (retrieval)
            var fileAttribute = fileAttributeRepository.Find(null).Items?.Where(q => q.Name == FileAttributes.RetrievalCount.ToString() &&
                                                                                q.ServerFileId == Guid.Parse(args.Id)).FirstOrDefault();

            fileAttribute.AttributeValue += 1;
            fileAttributeRepository.Update(fileAttribute);

            return(operation.Download(args.Path, args.Names, args.Data));
        }
コード例 #3
0
        public IActionResult Download(string downloadInput)
        {
            FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput);

            return(operation.Download(args.Path, args.Names, args.Data));
        }
コード例 #4
0
 public IActionResult Download(string path, string[] fileNames)
 {
     return(operation.Download(path, fileNames));
 }
コード例 #5
0
        public async Task <IActionResult> Download([FromForm] string downloadInput)
        {
            FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput);

            return(opration.Download(args.Path, args.Names));
        }