MAP.AspNetCore.StaticFiles
6.1.0
See the version list below for details.
dotnet add package MAP.AspNetCore.StaticFiles --version 6.1.0
NuGet\Install-Package MAP.AspNetCore.StaticFiles -Version 6.1.0
<PackageReference Include="MAP.AspNetCore.StaticFiles" Version="6.1.0" />
paket add MAP.AspNetCore.StaticFiles --version 6.1.0
#r "nuget: MAP.AspNetCore.StaticFiles, 6.1.0"
// Install MAP.AspNetCore.StaticFiles as a Cake Addin #addin nuget:?package=MAP.AspNetCore.StaticFiles&version=6.1.0 // Install MAP.AspNetCore.StaticFiles as a Cake Tool #tool nuget:?package=MAP.AspNetCore.StaticFiles&version=6.1.0
With this package you can work with static file name
- Create uniqe name for file
- Take file ContentType
- Compare two url for asp.net core
- ...
More features will be released soon
FileContentType class
This class work with cntent type
fileContentType(string? name)
Get content type from file name
TryContentType(string name)
Check file content type is exist or not
TryContentType(string name, out string contentType)
Check file content type is exist or not
RegularFileName class
This class work with file name
SetNameWithOutExtension(string name)
This method creates a unique name for your file and short your file name to dont exception url This method replace "_" and "." from name to "-" This method set file name with out Extension
SetNameWithExtension(string name)
This method creates a unique name for your file and short your file name to dont exception url This method replace "_" and "." from name to "-"
SetNameWithExtension(string name, string extention)
This method creates a unique name for your file and short your file name to dont exception url This method replace "_" and "." from name to "-"
RemoveGuidFromNameWithOutExtension(string name)
This method remove uniqe code from file name and remove extension
RemoveGuidFromNameWithExtension(string name)
This method remove uniqe code from file name
toEnDigits(string input)
This method change Persian/Arabic number to English number
fileNameWithExtensionFromUrl(string url)
Get file name from Url
CheckUrl(string path1, string path2)
Check Url in asp.net Core Actions and Files
FileExtensions class
GetFileExtension(string fileName)
This method get file extension
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
7.0.0-alpha4 | 245 | 10/25/2023 | |
7.0.0-alpha | 103 | 10/23/2023 | |
6.1.0 | 177 | 5/27/2023 | |
6.0.2 | 190 | 5/17/2023 | |
6.0.1 | 183 | 5/16/2023 | |
6.0.0 | 182 | 5/16/2023 |
With this package you can work with static file