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

Fixes #1970 Increasing Image File Size Limit to 50MB #2112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading