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 21
21
22
22
<ItemGroup >
23
23
<PackageReference Include =" AsyncKeyLock" Version =" 1.0.6" />
24
+ <PackageReference Include =" DataUnits" Version =" 1.0.2" />
24
25
<PackageReference Include =" Microsoft.IO.RecyclableMemoryStream" Version =" 3.0.1" />
25
26
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
26
27
</ItemGroup >
Original file line number Diff line number Diff line change 2
2
// https://github.com/usercode/ImageWizard
3
3
// MIT License
4
4
5
+ using DataUnits ;
6
+
5
7
namespace ImageWizard . Loaders ;
6
8
7
9
/// <summary>
@@ -22,5 +24,5 @@ public class LoaderOptions
22
24
/// <summary>
23
25
/// Maximum loader source content length (Default: 32 MB)
24
26
/// </summary>
25
- public long MaxLoaderSourceLength { get ; set ; } = 1024 * 1024 * 32 ; //25 MB
27
+ public ByteSize MaxLoaderSourceLength { get ; set ; } = ByteSize . FromMegabytes ( 32 ) ;
26
28
}
Original file line number Diff line number Diff line change 12
12
"FileLoader" : {
13
13
"Folder" : " wwwroot"
14
14
},
15
+ "HttpLoader" : {
16
+ "MaxLoaderSourceLength" : " 10 MB"
17
+ },
15
18
"Watermark" : {
16
19
"Margin" : 20 ,
17
20
"Image" : " wwwroot/img/copyright.png" ,
You can’t perform that action at this time.
0 commit comments