Skip to content

Commit

Permalink
fix(blazor): remove default file types from file options, extend defa…
Browse files Browse the repository at this point in the history
…ult image types
  • Loading branch information
SonicGD committed Jan 25, 2022
1 parent 24144e3 commit 1a3bbea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Sitko.Blockly.Blazor/Forms/BlazorBlocklyFormOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ public class BlazorBlocklyFormOptions : BlocklyFormOptions
public BlockFormStorageOptions FilesOptions { get; set; } = new();

public BlockFormStorageOptions ImagesOptions { get; set; } =
new() { AllowedTypes = "image/jpeg,image/png,image/svg+xml" };
new()
{
AllowedTypes = "image/jpeg,image/png,image/svg+xml,image/gif,image/ico,image/bmp,image/webm,image/webp"
};
}
2 changes: 1 addition & 1 deletion src/Sitko.Blockly.Blazor/Forms/BlockFormStorageOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Sitko.Blockly.Blazor.Forms;
public class BlockFormStorageOptions : BlocklyFormBlockOptions
{
public string UploadPath { get; set; } = "";
public string AllowedTypes { get; set; } = "image/jpeg,image/png,image/svg+xml";
public string AllowedTypes { get; set; } = "";
public long MaxFileSize { get; set; }
public int? MaxAllowedFiles { get; set; }

Expand Down

0 comments on commit 1a3bbea

Please sign in to comment.