
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
BlazorBasics.InputFileExtended
Advanced tools
Component Blazor extend InputFile with drag and drop, copy and paste and all the necessary to upload files. Also have a InputFileHandler can be inherit for extent and add more functions like authentication.
Extend the traditional component InputFile with more options like drag and drop, copy and paste. Less coding for all. Oficial web documentation and examples.
Import the name space adding to _Imports.razor this line:
@using BlazorBasics.InputFileExtended
Add into your component:
<InputFileComponent OnChange=LoadFiles />
@code {
private void LoadFiles(FilesUploadEventArgs e)
{
...
}
}
@using BlazorBasics.InputFileExtended
<InputFileComponent Parameters="Parameters" OnChange=LoadFiles />
@code{
BlazorBasics.InputFileExtended.ValueObjects.InputFileParameters Parameters = new BlazorBasics.InputFileExtended.ValueObjects.InputFileParameters()
{
DragAndDropOptions = new BlazorBasics.InputFileExtended.ValueObjects.DragAndDropOptions
{
CanDropFiles = true
}
};
private void LoadFiles(FilesUploadEventArgs e)
{
// ...
}
}
@using BlazorBasics.InputFileExtended
<InputFileComponent Parameters="Parameters" OnChange=LoadFiles />
@code{
BlazorBasics.InputFileExtended.ValueObjects.InputFileParameters Parameters = new BlazorBasics.InputFileExtended.ValueObjects.InputFileParameters()
{
AllowPasteFiles = true
};
private void LoadFiles(FilesUploadEventArgs e)
{
// ...
}
}
@using BlazorBasics.InputFileExtended
<InputFileComponent Parameters="Parameters" />
@code {
BlazorBasics.InputFileExtended.ValueObjects.InputFileParameters Parameters;
Task<bool> UploadFles(IReadOnlyList<BlazorBasics.InputFileExtended.Models.FileUploadContent> files)
{
// process your upload
// ...
await Task.Delay(1);
return true;
}
protected override void OnInitialized()
{
Parameters = new BlazorBasics.InputFileExtended.ValueObjects.InputFileParameters()
{
ButtonOptions = new BlazorBasics.InputFileExtended.ValueObjects.ButtonOptions
{
ButtonShow = true,
CleanOnSuccessUpload = true
}
};
Parameters.ButtonOptions.OnSubmit = UploadFles;
}
}
FAQs
Component Blazor extend InputFile with drag and drop, copy and paste and all the necessary to upload files. Also have a InputFileHandler can be inherit for extent and add more functions like authentication.
We found that blazorbasics.inputfileextended demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.