File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2121
2222 <ItemGroup >
2323 <PackageReference Include =" AsyncKeyLock" Version =" 1.0.6" />
24+ <PackageReference Include =" DataUnits" Version =" 1.0.2" />
2425 <PackageReference Include =" Microsoft.IO.RecyclableMemoryStream" Version =" 3.0.1" />
2526 <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
2627 </ItemGroup >
Original file line number Diff line number Diff line change 22// https://github.com/usercode/ImageWizard
33// MIT License
44
5+ using DataUnits ;
6+
57namespace ImageWizard . Loaders ;
68
79/// <summary>
@@ -22,5 +24,5 @@ public class LoaderOptions
2224 /// <summary>
2325 /// Maximum loader source content length (Default: 32 MB)
2426 /// </summary>
25- public long MaxLoaderSourceLength { get ; set ; } = 1024 * 1024 * 32 ; //25 MB
27+ public ByteSize MaxLoaderSourceLength { get ; set ; } = ByteSize . FromMegabytes ( 32 ) ;
2628}
Original file line number Diff line number Diff line change 1212 "FileLoader" : {
1313 "Folder" : " wwwroot"
1414 },
15+ "HttpLoader" : {
16+ "MaxLoaderSourceLength" : " 10 MB"
17+ },
1518 "Watermark" : {
1619 "Margin" : 20 ,
1720 "Image" : " wwwroot/img/copyright.png" ,
You can’t perform that action at this time.
0 commit comments