Skip to content

Commit

Permalink
Fixes #1970 Increasing Image File Size Limit to 50MB (#2112)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

Increase the file size limit from 5MB to 50MB so more image processing
can be done within BC rather than externally

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #1970

Fixes
[AB#550942](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/550942)

Co-authored-by: Matthew Matthiesen <[email protected]>
  • Loading branch information
mjmatthiesen and Matthew Matthiesen authored Nov 22, 2024
1 parent 9fc5c8a commit a8c3e32
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 a8c3e32

Please sign in to comment.