Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/DataJuggler/BlazorFileUpload

This was originally a wrapper of Steve Sanderson's BlazorFileInput. It has since been upgraded to a wrapper of ASP.NET CORE FileInput
https://github.com/DataJuggler/BlazorFileUpload

blazor csharp fileupload

Last synced: about 2 months ago
JSON representation

This was originally a wrapper of Steve Sanderson's BlazorFileInput. It has since been upgraded to a wrapper of ASP.NET CORE FileInput

Awesome Lists containing this project

README

        

# BlazorFileUpload

This project was originally a wrapper of Steve Sanderson's BlazorFileInput, but now has been
updated to the InputFile .NET component. This project has been updated to .NET 8.

# Update 8.19.2024 - New sample Project and Video

First Ever Opensource Saturday - Sunday Edition
https://youtu.be/uxa1xR6xpzk

# New Sample Project

NTouch - A Simple Contact Management Demo
https://github.com/DataJuggler/NTouch/

# Blazor Gallery

Blazor Gallery is a C#, Blazor, SQL Server image portfolio site, allowing anyone to create up to
five folders with up to 20 images per file.

Live Demo: https://blazorgallery.com

To see a complete working example, with source code please visit:

Blazor Gallery
https://github.com/DataJuggler/BlazorGallery

Blazor Gallery can also be installed as a dotnet cli project:
(You may change the top line to any directory you wish)

cd c:\Projects\BlazorGallery
dotnet new install DataJuggler.BlazorGallery
dotnet new DataJuggler.BlazorGallery

Another complete working example, with source code please visit:


Blazor Excelerate

https://excelerate.datajuggler.com

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



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.Excelerate (the Nuget package that powers Blazor Excelerate).

#region OnFileUploaded(UploadedFileInfo file)
///
/// This method On File Uploaded
///
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

Updates

11.17.2023: This project has been updated to .NET8.

8.13.2023: DataJuggler.Blazor.Components was updated because DataJuggler.UltimateHelper was updated.

version 7.1.0
7.2.2023: DataJuggler.BlazorFileUpload now supports multiple file uploads.

7.1.2
7.22.2023: DataJuggler.Blazor.Components was updated.