Add fileSize limit to extractors (#35200) (#35280)

Automatic Merge
Этот коммит содержится в:
Mattermost Build
2026-02-13 14:09:32 +02:00
коммит произвёл GitHub
родитель 053dcf62b6
Коммит eb8c99fe9c
12 изменённых файлов: 104 добавлений и 24 удалений

Просмотреть файл

@@ -10,6 +10,6 @@ import (
// Extractors define the interface needed to extract file content
type Extractor interface {
Match(filename string) bool
Extract(filename string, file io.ReadSeeker) (string, error)
Extract(filename string, file io.ReadSeeker, maxFileSize int64) (string, error)
Name() string
}