mirror of https://github.com/abpframework/abp.git
6 changed files with 47 additions and 10 deletions
@ -0,0 +1,23 @@ |
|||
using System.IO; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
|
|||
namespace Volo.Blogging.Pages.Blogs.Shared.Helpers |
|||
{ |
|||
public static class BlogNameControlHelper |
|||
{ |
|||
public static bool IsFileFormat(string blogShortName) |
|||
{ |
|||
if (!string.IsNullOrWhiteSpace(blogShortName)) |
|||
{ |
|||
var fileInfo = new FileInfo(blogShortName); |
|||
|
|||
if (!string.IsNullOrEmpty(fileInfo.Extension)) |
|||
{ |
|||
return true; |
|||
} |
|||
} |
|||
|
|||
return false; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue