Files with size equal to a multiple of $block_size causes file not to actually be uploaded to AZBlob

Created on 6 June 2025, 3 months ago

Problem/Motivation

Chunking loop in AzBlobFsStream.php will create a chunk of 0 bytes when file size is a multiple of $block_size, causing upload to fail.

Steps to reproduce

Upload a file with a size that is a multiple of $block_size.

Proposed resolution

Fix loop condition so that the loop will not correctly at the end of file and not create an extra chunk of size zero.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024