Merge pull request #720 from sbwalker/master

add support for SVG and ICO files
This commit is contained in:
Shaun Walker 2020-08-31 10:01:15 -04:00 committed by GitHub
commit e75fe19103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -10,10 +10,10 @@
<table class="table table-borderless">
<tr>
<td>
<label class="control-label">Name: </label>
<Label For="name" HelpText="Enter a name">Name: </Label>
</td>
<td>
<input id="_name" class="form-control" @bind="@_name" />
<input id="name" class="form-control" @bind="@_name" />
</td>
</tr>
</table>

View File

@ -5,10 +5,10 @@
<table class="table table-borderless">
<tr>
<td>
<label for="Setting" class="control-label">Setting: </label>
<Label For="value" HelpText="Enter a value">Name: </Label>
</td>
<td>
<input type="text" class="form-control" @bind="_value" />
<input id="value" type="text" class="form-control" @bind="@_value" />
</td>
</tr>
</table>

View File

@ -10,10 +10,10 @@
<table class="table table-borderless">
<tr>
<td>
<label class="control-label">Name: </label>
<Label For="name" HelpText="Enter a name">Name: </Label>
</td>
<td>
<input id="_name" class="form-control" @bind="@_name" />
<input id="name" class="form-control" @bind="@_name" />
</td>
</tr>
</table>

View File

@ -5,10 +5,10 @@
<table class="table table-borderless">
<tr>
<td>
<label for="Setting" class="control-label">Setting: </label>
<Label For="value" HelpText="Enter a value">Name: </Label>
</td>
<td>
<input type="text" class="form-control" @bind="_value" />
<input id="value" type="text" class="form-control" @bind="@_value" />
</td>
</tr>
</table>

View File

@ -45,8 +45,8 @@ namespace Oqtane.Shared
public const string AdminRole = "Administrators";
public const string RegisteredRole = "Registered Users";
public const string ImageFiles = "jpg,jpeg,jpe,gif,bmp,png";
public const string UploadableFiles = "jpg,jpeg,jpe,gif,bmp,png,mov,wmv,avi,mp4,mp3,doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,nupkg";
public const string ImageFiles = "jpg,jpeg,jpe,gif,bmp,png,svg,ico";
public const string UploadableFiles = "jpg,jpeg,jpe,gif,bmp,png,svg,ico,mov,wmv,avi,mp4,mp3,doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,nupkg";
public const string ReservedDevices = "CON,NUL,PRN,COM0,COM1,COM2,COM3,COM4,COM5,COM6,COM7,COM8,COM9,LPT0,LPT1,LPT2,LPT3,LPT4,LPT5,LPT6,LPT7,LPT8,LPT9,CONIN$,CONOUT$";
public static readonly char[] InvalidFileNameChars =