Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add larger files #35

Merged

Conversation

koehnlein
Copy link
Contributor

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
Copy link
Collaborator

Thank you :)

@benjaminhirsch benjaminhirsch merged commit 580f742 into macopedia:master May 13, 2022
@koehnlein koehnlein deleted the feature/add-with-resource branch May 20, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants