csharp-mvc: convert after uploading only tagged formats

This commit is contained in:
ZEROM22
2023-11-27 10:44:17 +03:00
parent 5ac60bace6
commit b19abbcb36
2 changed files with 2 additions and 3 deletions

View File

@ -126,9 +126,7 @@ namespace OnlineEditorsExampleMVC.Models
public static List<Format> Convertible()
{
return All()
.Where(format => (format.Type == FileType.Cell && format.Convert.Contains("xlsx"))
|| (format.Type == FileType.Slide && format.Convert.Contains("pptx"))
|| (format.Type == FileType.Word && format.Convert.Contains("docx")))
.Where(format => format.Actions.Contains("auto-convert"))
.ToList();
}