mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
csharp-mvc: convert after uploading only tagged formats
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user