macopedia / typo3-azurestorage

TYPO3 FAL driver extension for Microsoft Azure Blob Storage
MIT License
4 stars 5 forks source link

Allow to add larger files #35

Closed koehnlein closed 2 years ago

koehnlein commented 2 years ago

The original method createBlockBlob() allows the content to be resource or StreamInterface https://github.com/Azure/azure-storage-blob-php/blob/master/src/Blob/Internal/IBlob.php#L493

When changing your code from file_get_contents() to fopen(), PHP does not need to read the full file into memory. With this simple change, I could transfer much bigger files than before.

benjaminhirsch commented 2 years ago

Thank you :)