Saturday, February 9, 2019

Path.Extension() in C#!

This is how to get the path from an IFormFile type that gets hydrated from a file type HTML input control.

if (Path.GetExtension(ThisThing.FileName).ToLower() == ".xlsx")
{

No comments:

Post a Comment