Skip to content

Commit

Permalink
Merge pull request #2053 from leigh-pointer/FileConstants
Browse files Browse the repository at this point in the history
Fix for File Upload Failed {Error} .json file #2052
  • Loading branch information
sbwalker authored Mar 14, 2022
2 parents c3218b2 + 4324290 commit 9b69e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Oqtane.Shared/Shared/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class Constants {
public const string RegisteredRole = RoleNames.Registered;

public const string ImageFiles = "jpg,jpeg,jpe,gif,bmp,png,ico,webp";
public const string UploadableFiles = ImageFiles + ",mov,wmv,avi,mp4,mp3,doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,nupkg,csv";
public const string UploadableFiles = ImageFiles + ",mov,wmv,avi,mp4,mp3,doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,nupkg,csv,json,xml,xslt,rss,html,htm,css";
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 =
Expand Down

0 comments on commit 9b69e13

Please sign in to comment.