This commit is contained in:
@@ -16,7 +16,7 @@ namespace NeDvachAPI.Controllers
|
||||
var supportedTypes = new[] { "jpg", "png" };
|
||||
string receivedFileName = PostPicture.FileName;
|
||||
string fileExt = receivedFileName.Substring((receivedFileName.Length) - 3, 3);
|
||||
if (supportedTypes.Contains(fileExt)) //file type check
|
||||
if (supportedTypes.Contains(fileExt.ToLower())) //file type check
|
||||
{
|
||||
///Local Buffer File Part
|
||||
string filePath;
|
||||
|
Reference in New Issue
Block a user