diff --git a/src/Storage/Controllers/MigrationController.cs b/src/Storage/Controllers/MigrationController.cs index a8b27184..8ab4f826 100644 --- a/src/Storage/Controllers/MigrationController.cs +++ b/src/Storage/Controllers/MigrationController.cs @@ -233,7 +233,7 @@ public async Task> CreateDataElement( (Stream theStream, dataElement.ContentType, dataElement.Filename, _) = await DataElementHelper.GetStream(Request, FormOptions.DefaultMultipartBoundaryLengthLimit); - if (Request.ContentLength > 0) + if (Request.ContentLength > 0 || dataElement.DataType == "binary-data") { (dataElement.Size, _) = await _blobRepository.WriteBlob( $"{(_generalSettings.A2UseTtdAsServiceOwner ? "ttd" : instance.Org)}",