public List <FileCopyInfo> GetAllFileSourceAndTargetPathsWhenImportForguncyFile(IFileUploadContext context)
        {
            var list = new List <FileCopyInfo>();

            if (ImageInfos != null)
            {
                foreach (var imageInfo in ImageInfos)
                {
                    if (string.IsNullOrEmpty(imageInfo.ImagePath))
                    {
                        continue;
                    }

                    list.Add(new FileCopyInfo()
                    {
                        SourceFileFolder = Path.Combine(context.GetForguncyUploadFilesRelativePath(context.SourceDocumentFolder), "CarouselCellType", "Images"),
                        SourceFileName   = imageInfo.ImagePath,
                        TargetFileFolder = Path.Combine(context.GetForguncyUploadFilesFolderLocalPath(), "CarouselCellType", "Images"),
                        TargetFileName   = imageInfo.ImagePath
                    });
                }
            }

            return(list);
        }
        public FileUploadInfo GetUploadFileInfosWhenSaveFile(IFileUploadContext context)
        {
            var result = new FileUploadInfo()
            {
                UploadFileFolder = Path.Combine(context.GetForguncyUploadFilesFolderLocalPath(), "CarouselCellType", "Images")
            };

            if (ImageInfos != null)
            {
                foreach (var imageInfo in ImageInfos)
                {
                    if (string.IsNullOrEmpty(imageInfo.ImagePath))
                    {
                        continue;
                    }

                    result.AllUsedUploadFilePaths.Add(imageInfo.ImagePath);
                }
            }

            return(result);
        }