Blazor Server .net 5.0 InputFile

101 views Asked by At

I am coding a site that will allow customers to upload files.

My concern is that I don't want to allow the uploading of executable files.

Is there an option to prevent this.

1

There are 1 answers

0
Jimmy Engtröm On

You should be able to use the accept attribute as per this post:

Allow only specific file type to upload in blazor