public bool IsPhotoFile(string fileName) { return UploadService.SupportedPhotoFormats.Contains(Path.GetExtension(fileName).ToLowerInvariant()); }