Renamed private field name (#535)

Conditional statement is to compare the file data length when it is more than a specific size, to the private filed was renamed from "ImageMinimumBytes" to "ImageMaximumBytes".
This commit is contained in:
Sayed M. Hussein
2021-05-27 19:00:58 +03:00
committed by GitHub
parent 15bd78ee5b
commit 9251940529

View File

@@ -32,7 +32,7 @@ namespace BlazorShared.Models
public string PictureBase64 { get; set; }
public string PictureName { get; set; }
private const int ImageMinimumBytes = 512000;
private const int ImageMaximumBytes = 512000;
public static string IsValidImage(string pictureName, string pictureBase64)
{
@@ -47,7 +47,7 @@ namespace BlazorShared.Models
return "File length is 0!";
}
if (fileData.Length > ImageMinimumBytes)
if (fileData.Length > ImageMaximumBytes)
{
return "Maximum length is 512KB";
}