[MM-57500] Streaming support for importing file attachments (#26629)

* Bulk import: stream file attachments uploads

* Add comment with context on buffer size

* Add file name to logs

* Use sha256 to do checksum

* Fix bad merge

* Fix import file

* Update test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Claudio Costa
2024-04-19 15:49:33 -06:00
коммит произвёл GitHub
родитель ffc08858cf
Коммит 446c763fa8
10 изменённых файлов: 542 добавлений и 74 удалений

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

@@ -5410,13 +5410,17 @@
"id": "app.import.attachment.bad_file.error",
"translation": "Error reading the file at: \"{{.FilePath}}\""
},
{
"id": "app.import.attachment.file_stat.error",
"translation": "Error reading the file status: \"{{.FilePath}}\""
},
{
"id": "app.import.attachment.file_upload.error",
"translation": "Error uploading the file: \"{{.FilePath}}\""
},
{
"id": "app.import.attachment.read_file_data.error",
"translation": "Failed to read file attachment during import."
"id": "app.import.attachment.seek_file.error",
"translation": "Error seeking the file: \"{{.FilePath}}\""
},
{
"id": "app.import.bulk_import.file_scan.error",