From ee55956d8012851262e08e8016a0d7fa9fb6c153 Mon Sep 17 00:00:00 2001 From: akshit-accolite Date: Thu, 3 Sep 2020 13:32:56 +0530 Subject: [PATCH] 2567: .Net SDK: File upload is not working for files other than pdf (e.g. *.jpg, *.png, *.mp4) added support for *.jpg, *.png, *.mp4 file formats --- src/File/FileValidation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/File/FileValidation.cs b/src/File/FileValidation.cs index de170a4..773b8ce 100644 --- a/src/File/FileValidation.cs +++ b/src/File/FileValidation.cs @@ -11,12 +11,12 @@ public class FileValidation /// /// Allowed file validation default extensions. /// - public static string[] AllowedFileExtsDefault = new string[] { "txt", "pdf", "doc" }; + public static string[] AllowedFileExtsDefault = new string[] { "txt", "pdf", "doc" , "png", "jpg" , "mp4"}; /// /// Allowed file validation default mimetypes. /// - public static string[] AllowedFileMimetypesDefault = new string[] { "text/plain", "application/msword", "application/x-pdf", "application/pdf" }; + public static string[] AllowedFileMimetypesDefault = new string[] { "text/plain", "application/msword", "application/x-pdf", "application/pdf", "image/png" , "video/mp4", "image/jpeg" }; /// /// Allowed validation extensions.