csharp: convert after uploading only tagged formats

This commit is contained in:
ZEROM22
2023-11-27 10:45:29 +03:00
parent b19abbcb36
commit 580f8f3e89
2 changed files with 2 additions and 3 deletions

View File

@ -104,9 +104,7 @@ namespace OnlineEditorsExample
public static List<Format> Convertible()
{
return All()
.Where(format => (format.Type == "cell" && format.Convert.Contains("xlsx"))
|| (format.Type == "slide" && format.Convert.Contains("pptx"))
|| (format.Type == "word" && format.Convert.Contains("docx")))
.Where(format => format.Actions.Contains("auto-convert"))
.ToList();
}