Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 628 Bytes

2022-04-29-add-load-media-file-stream-to-media-service-and-file-loader.md

File metadata and controls

10 lines (10 loc) · 628 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Add loadMediaFileStream to MediaService and FileLoader
issue: NEXT-21711
author: JoshuaBehrens
author_email: code@joshua-behrens.de
author_github: @JoshuaBehrens
---

Core

  • Added \Shopware\Core\Content\Media\File\FileLoader::loadMediaFileStream as companion to \Shopware\Core\Content\Media\File\FileLoader::loadMediaFile but it returns a stream for better memory management options with big files
  • Added \Shopware\Core\Content\Media\MediaService::loadFileStream as companion to \Shopware\Core\Content\Media\MediaService::loadFile but it returns a stream for better memory management options with big files