{"id":22343476,"url":"https://github.com/datajuggler/blazorfileupload","last_synced_at":"2025-04-05T10:08:38.161Z","repository":{"id":53546888,"uuid":"221029644","full_name":"DataJuggler/BlazorFileUpload","owner":"DataJuggler","description":"This was originally a wrapper of Steve Sanderson's BlazorFileInput. It has since been upgraded to a wrapper of ASP.NET CORE FileInput","archived":false,"fork":false,"pushed_at":"2025-02-09T18:02:38.000Z","size":14299,"stargazers_count":33,"open_issues_count":10,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T09:09:52.831Z","etag":null,"topics":["blazor","csharp","fileupload"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataJuggler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-11T17:04:07.000Z","updated_at":"2025-02-09T18:02:41.000Z","dependencies_parsed_at":"2024-09-14T02:41:34.646Z","dependency_job_id":null,"html_url":"https://github.com/DataJuggler/BlazorFileUpload","commit_stats":{"total_commits":84,"total_committers":5,"mean_commits":16.8,"dds":"0.20238095238095233","last_synced_commit":"ce462b1d71c75114204a251596483a76a16834df"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FBlazorFileUpload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FBlazorFileUpload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FBlazorFileUpload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FBlazorFileUpload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataJuggler","download_url":"https://codeload.github.com/DataJuggler/BlazorFileUpload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318744,"owners_count":20919484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","csharp","fileupload"],"created_at":"2024-12-04T08:16:11.208Z","updated_at":"2025-04-05T10:08:38.116Z","avatar_url":"https://github.com/DataJuggler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlazorFileUpload\r\n\r\nThis project was originally a wrapper of Steve Sanderson's BlazorFileInput, but now has been\r\nupdated to the InputFile .NET component. This project has been updated to .NET 9.\r\n\r\n# Update 2.9.2025 - .NET 9\r\n\r\nThis project has been updated to .NET 9.\r\n\r\n# Update 8.19.2024 - New sample Project and Video\r\n\r\nFirst Ever Opensource Saturday - Sunday Edition\r\nhttps://youtu.be/uxa1xR6xpzk\r\n\r\n# New Sample Project\r\n\r\nNTouch - A Simple Contact Management Demo\r\nhttps://github.com/DataJuggler/NTouch/\r\n\r\n# Blazor Gallery\r\n\r\nBlazor Gallery is a C#, Blazor, SQL Server image portfolio site, allowing anyone to create up to\r\nfive folders with up to 20 images per file.\r\n\r\nLive Demo: https://blazorgallery.com\r\n\r\nTo see a complete working example, with source code please visit:\r\n\r\nBlazor Gallery\r\nhttps://github.com/DataJuggler/BlazorGallery\r\n\r\nBlazor Gallery can also be installed as a dotnet cli project: \r\n(You may change the top line to any directory you wish)\r\n\r\n    cd c:\\Projects\\BlazorGallery\r\n    dotnet new install DataJuggler.BlazorGallery\r\n    dotnet new DataJuggler.BlazorGallery\r\n\r\nAnother complete working example, with source code please visit:\r\n\r\n\u003cimg src=https://excelerate.datajuggler.com/Images/ExcelerateLogoSmallWhite.png height=128 width=128\u003e\r\n\u003cimg src=https://excelerate.datajuggler.com/Images/logotextsparkled.png\u003e\r\n\r\nBlazor Excelerate \u003cbr /\u003e\r\nhttps://excelerate.datajuggler.com \u003cbr /\u003e\r\nCode Generate C# Classes From Excel Header Rows\r\n\r\nThe source code for the above project is available at:\r\n\r\nhttps://github.com/DataJuggler/Blazor.Excelerate\r\n\r\nHere is an example of creating a file upload component:\r\n\r\n    @using DataJuggler.Blazor.FileUpload\r\n\r\n    \u003cFileUpload CustomSuccessMessage=\"Your file uploaded successfully.\" \r\n        OnReset=\"OnReset\" ResetButtonClassName=\"localbutton\" ShowStatus=\"false\"\r\n        PartialGuidLength=\"12\" MaxFileSize=@UploadLimit FilterByExtension=\"true\" \r\n        ShowCustomButton=\"true\"  ButtonText=\"Upload Excel\" OnChange=\"OnFileUploaded\"\r\n        CustomButtonClassName=\"@OrangeButton\" AllowedExtensions=\".xlsx\"\r\n        ShowResetButton=\"false\" AppendPartialGuid=\"true\"\r\n        CustomExtensionMessage=\"Only .xlsx extensions are allowed.\" \r\n        InputFileClassName=\"customfileupload\" Visible=false Status=\"Refresh\"\r\n        FileTooLargeMessage=@FileTooLargeMessage\u003e\r\n    \u003c/FileUpload\u003e\r\n    \r\n\r\nTo handle the File Upload event 'OnFileUploaded'. The code shown also starts a progress bar timer and reads the sheet names\r\nusing Nuget package DataJuggler.Excelerate (the Nuget package that powers Blazor Excelerate). \r\n\r\n    #region OnFileUploaded(UploadedFileInfo file)\r\n    /// \u003csummary\u003e\r\n    /// This method On File Uploaded\r\n    /// \u003c/summary\u003e\r\n    public void OnFileUploaded(UploadedFileInfo file)\r\n    {\r\n        // if the file was uploaded\r\n        if (!file.Aborted)\r\n        {\r\n            // Show the Progressbar\r\n            ShowProgress = true;\r\n            \r\n            // if the ProgressBar\r\n            if (HasProgressBar)\r\n            {\r\n                // Start the Timer\r\n                ProgressBar.Start();\r\n            }\r\n            \r\n            // Create a model\r\n            GetSheetNamesModel model = new GetSheetNamesModel();\r\n            \r\n            // Set the model\r\n            model.FullPath = file.FullPath;\r\n            \r\n            // Store this for later\r\n            ExcelPath = file.FullPath;\r\n            \r\n            // reload the model\r\n            HandleDiscoverSheets(model);\r\n        }\r\n        else\r\n        {\r\n            // for debugging only\r\n            if (file.HasException)\r\n            {\r\n                // for debugging only\r\n                string message = file.Exception.Message;\r\n            }\r\n        }\r\n    }\r\n    #endregion\r\n    \r\nUpdates\r\n\r\n9.13.2023: I updated 5 NuGet packages.\r\n\r\n11.17.2023: This project has been updated to .NET8.\r\n\r\n8.13.2023: DataJuggler.Blazor.Components was updated because DataJuggler.UltimateHelper was updated.\r\n\r\nversion 7.1.0\r\n7.2.2023: DataJuggler.BlazorFileUpload now supports multiple file uploads.\r\n\r\n7.1.2\r\n7.22.2023: DataJuggler.Blazor.Components was updated.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatajuggler%2Fblazorfileupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatajuggler%2Fblazorfileupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatajuggler%2Fblazorfileupload/lists"}