Skip to content

Commit

Permalink
Fixes microsoft#1970 Increasing Image File Size Limit to 50MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Matthiesen committed Sep 27, 2024
1 parent 4f2f595 commit b7fb259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/System Application/App/Image/src/ImageImpl.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ codeunit 3970 "Image Impl."
Size, Width, Height : Integer;
MaxSize: Integer;
begin
MaxSize := 5242880; // 5MB
MaxSize := 52428800; // 50MB
if TempBlob.Length() > MaxSize then begin
Session.LogMessage('0000FMA', StrSubstNo(ImageTooLargeTxt, TempBlob.Length()), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', ImageCatTxt);
System.Clear(TempBlob);
Expand Down Expand Up @@ -396,4 +396,4 @@ codeunit 3970 "Image Impl."
RotateFlipType := RotateFlipType::RotateNoneFlipNone;
end;
end;
}
}

0 comments on commit b7fb259

Please sign in to comment.