DataJuggler.Blazor.FileUpload 1.0.6-Preview

This is a prerelease version of DataJuggler.Blazor.FileUpload.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DataJuggler.Blazor.FileUpload --version 1.0.6-Preview
                    
NuGet\Install-Package DataJuggler.Blazor.FileUpload -Version 1.0.6-Preview
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DataJuggler.Blazor.FileUpload" Version="1.0.6-Preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DataJuggler.Blazor.FileUpload" Version="1.0.6-Preview" />
                    
Directory.Packages.props
<PackageReference Include="DataJuggler.Blazor.FileUpload" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DataJuggler.Blazor.FileUpload --version 1.0.6-Preview
                    
#r "nuget: DataJuggler.Blazor.FileUpload, 1.0.6-Preview"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DataJuggler.Blazor.FileUpload&version=1.0.6-Preview&prerelease
                    
Install DataJuggler.Blazor.FileUpload as a Cake Addin
#tool nuget:?package=DataJuggler.Blazor.FileUpload&version=1.0.6-Preview&prerelease
                    
Install DataJuggler.Blazor.FileUpload as a Cake Tool

This package is built upon BlazorInputFile by Steve Sanderson at Microsoft. https://github.com/SteveSandersonMS/BlazorInputFile

All I did was wrap in it a component to make it easy to use in a Blazor app.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2 396 2/9/2025
9.0.1 121 2/9/2025
9.0.0 109 2/9/2025
8.0.2 740 9/13/2024
8.0.1 2,193 5/19/2024
8.0.0 1,626 11/17/2023
7.2.3 647 8/27/2023
7.2.2 152 8/26/2023
7.2.1 191 8/14/2023
7.2.0 183 8/13/2023
7.1.2 207 7/22/2023
7.1.1 181 7/22/2023
7.1.0 212 7/12/2023
7.0.6 229 6/21/2023
7.0.5 289 5/8/2023
7.0.4 2,011 4/5/2023
7.0.3 400 3/6/2023
7.0.1 260 3/6/2023
7.0.0 1,212 11/9/2022
7.0.0-rc1 145 10/21/2022
6.0.3 5,877 7/6/2022
6.0.2 750 6/8/2022
6.0.1 2,469 1/23/2022
5.0.1 4,736 11/12/2021
5.0.0 370 11/11/2021
2.0.0 400 11/11/2021
1.6.2 486 10/14/2021
1.6.1 433 10/13/2021
1.6.0 3,252 3/10/2021
1.5.1 7,569 11/30/2020
1.5.0 509 11/27/2020
1.4.1 554 11/13/2020
1.4.0 516 11/13/2020
1.3.5 16,728 4/8/2020
1.3.4 3,200 3/6/2020
1.3.3 711 2/26/2020
1.3.2 782 2/7/2020
1.3.1 585 2/7/2020
1.3.0 782 1/25/2020
1.2.8 672 1/24/2020
1.2.7 3,334 1/15/2020
1.2.6 616 1/14/2020
1.2.5 567 1/14/2020
1.2.4 603 1/13/2020
1.2.3 541 1/13/2020
1.2.2 551 1/13/2020
1.2.1 703 1/12/2020
1.2.0 694 1/12/2020
1.1.0 736 1/5/2020
1.0.11-Preview 428 12/3/2019
1.0.10-Preview 328 11/16/2019
1.0.9-Preview 295 11/12/2019
1.0.8-Preview 300 11/12/2019
1.0.7-Preview 303 11/12/2019
1.0.6-Preview 299 11/11/2019
1.0.5-Preview 295 11/11/2019

Update 1.0.6: I decided to return more information about the file instead of just the name to make it actually useful.

I also broke the FileUploaded method, but now is the time to break it before anyone starts using it. Now I return an object called UploadedFileInfo, with 6 properties.
1. string Name
2. string PartialGuid
3. string readonly NameWithPartialGuid (a concatanation of name + "." + PartialGuid
4. long Size
5. datetime LastModified
6. string Type


--
This is the first working version, that also raises the OnChange event to return the FileName of the file returned.

I also added a partial Guid to each fileName to ensure uniqueness. You can change the length of the PartialGuid, but the component does expect the PartialGuidLengthParameter to either not be set, which defaults to 12, or atleast be above zero.

When leaving it as the default value, the filename uploaded is named (filename.extension).partialguidstring
Example: JohnSmithResume.doc.sxlasdfclaej