DataJuggler.Blazor.FileUpload
7.0.5
See the version list below for details.
dotnet add package DataJuggler.Blazor.FileUpload --version 7.0.5
NuGet\Install-Package DataJuggler.Blazor.FileUpload -Version 7.0.5
<PackageReference Include="DataJuggler.Blazor.FileUpload" Version="7.0.5" />
<PackageVersion Include="DataJuggler.Blazor.FileUpload" Version="7.0.5" />
<PackageReference Include="DataJuggler.Blazor.FileUpload" />
paket add DataJuggler.Blazor.FileUpload --version 7.0.5
#r "nuget: DataJuggler.Blazor.FileUpload, 7.0.5"
#:package DataJuggler.Blazor.FileUpload@7.0.5
#addin nuget:?package=DataJuggler.Blazor.FileUpload&version=7.0.5
#tool nuget:?package=DataJuggler.Blazor.FileUpload&version=7.0.5
BlazorFileUpload
This is a wrapper of Steve Sanderson's BlazorFileInput
This project has been updated to .NET 7.
To see a complete working example, with source code please visit:
<img src=https://excelerate.datajuggler.com/Images/ExcelerateLogoSmallWhite.png height=128 width=128> <img src=https://excelerate.datajuggler.com/Images/logotextsparkled.png>
Blazor Excelerate <br /> https://excelerate.datajuggler.com <br /> Code Generate C# Classes From Excel Header Rows
The source code for the above project is available at:
https://github.com/DataJuggler/Blazor.Excelerate
Here is an example of creating a file upload component:
@using DataJuggler.Blazor.FileUpload
<FileUpload CustomSuccessMessage="Your file uploaded successfully."
OnReset="OnReset" ResetButtonClassName="localbutton" ShowStatus="false"
PartialGuidLength="12" MaxFileSize=@UploadLimit FilterByExtension="true"
ShowCustomButton="true" ButtonText="Upload Excel" OnChange="OnFileUploaded"
CustomButtonClassName="@OrangeButton" AllowedExtensions=".xlsx"
ShowResetButton="false" AppendPartialGuid="true"
CustomExtensionMessage="Only .xlsx extensions are allowed."
InputFileClassName="customfileupload" Visible=false Status="Refresh"
FileTooLargeMessage=@FileTooLargeMessage>
</FileUpload>
To handle the File Upload event 'OnFileUploaded'. The code shown also starts a progress bar timer and reads the sheet names using Nuget package DataJuggler.Excelrate (the Nuget package that powers Blazor Excelerate).
#region OnFileUploaded(UploadedFileInfo file)
/// <summary>
/// This method On File Uploaded
/// </summary>
public void OnFileUploaded(UploadedFileInfo file)
{
// if the file was uploaded
if (!file.Aborted)
{
// Show the Progressbar
ShowProgress = true;
// if the ProgressBar
if (HasProgressBar)
{
// Start the Timer
ProgressBar.Start();
}
// Create a model
GetSheetNamesModel model = new GetSheetNamesModel();
// Set the model
model.FullPath = file.FullPath;
// Store this for later
ExcelPath = file.FullPath;
// reload the model
HandleDiscoverSheets(model);
}
else
{
// for debugging only
if (file.HasException)
{
// for debugging only
string message = file.Exception.Message;
}
}
}
#endregion
It is on my to do list to handle multiple file uploads, I just haven't had a use case that I need this feature yet.
Volunteers are welcome to add this and I will merge the pull request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- DataJuggler.Blazor.Components (>= 7.7.3)
- DataJuggler.UltimateHelper (>= 7.1.2)
- Microsoft.AspNetCore.Components (>= 7.0.5)
- Microsoft.AspNetCore.Components.Web (>= 7.0.5)
- System.Drawing.Common (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DataJuggler.Blazor.FileUpload:
| Package | Downloads |
|---|---|
|
DataJuggler.BlazorGallery
A project template for creating a Blazor Image Gallery project that uses SQL Server for a backend. You will need SQL Server or SQL Server Express to run this project. See the Read Me for more info. Watch this video to see a demo https://youtu.be/yQz1dqYiy2g. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.3 | 374 | 5/20/2025 |
| 9.0.2 | 690 | 2/9/2025 |
| 9.0.1 | 263 | 2/9/2025 |
| 9.0.0 | 248 | 2/9/2025 |
| 8.0.2 | 1,519 | 9/13/2024 |
| 8.0.1 | 3,480 | 5/19/2024 |
| 8.0.0 | 1,750 | 11/17/2023 |
| 7.2.3 | 755 | 8/27/2023 |
| 7.2.2 | 256 | 8/26/2023 |
| 7.2.1 | 289 | 8/14/2023 |
| 7.2.0 | 288 | 8/13/2023 |
| 7.1.2 | 308 | 7/22/2023 |
| 7.1.1 | 267 | 7/22/2023 |
| 7.1.0 | 312 | 7/12/2023 |
| 7.0.6 | 363 | 6/21/2023 |
| 7.0.5 | 417 | 5/8/2023 |
| 7.0.4 | 2,140 | 4/5/2023 |
| 7.0.3 | 519 | 3/6/2023 |
| 7.0.1 | 381 | 3/6/2023 |
| 7.0.0 | 1,336 | 11/9/2022 |
5.8.2023: Updated Microsoft.AspCore.Components and Microsoft.AspCore.Components.Web.
Also made this project be able to implement IBlazorComponent, so now it can register
with IBlazorComponentParents. This allos the parent to send a message 'OnReset", to force
a reset.
4.5.2023: Upgraded Nuget package DataJuggler.UltimateHelper and
Microsoft.AspCore.Components and Microsoft.AspCore.Components.Web.
3.6.2023: Added a Read Me with links to Blazor Excelerate examples.
v7.0.2
3.6.2023: Updated some Nuget packages
v7.0.1
12.3.2022: Released 7.0.0 version.
10.20.2022:
v7.0.0.-rc1: This version is listed as pre-release until .NET7 is out of preview.
This version has been upaded for .NET7.
7.6.2022
Version 6.0.3: I set the default MaxFileUpload to 40 meg by default.
If you don't set any value, the file upload is aborted, and yesterday I had to
add the project reference to figure this out. I figure this will make it easier.
I may add an Aborted Reason when I get some time.