{"repo":"KristofferStrube/Blazor.FileAPI","free":true,"listed":false,"github":"https://github.com/KristofferStrube/Blazor.FileAPI","clone":"git clone https://github.com/KristofferStrube/Blazor.FileAPI.git","description":"A Blazor wrapper for the browser File API.","language":"C#","stars":45,"topics":["api","blazor","blazor-interop","blazor-webassembly","blob","csharp","file","file-api","fileapi","github-actions"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Introduction A Blazor wrapper for the browser File API The API provides a standard for representing file objects in the browser and ways to select them and access their data. One of the most used interfaces that is at the core of this API is the Blob interface. This project implements a wrapper around the API for Blazor so that we can easily and safely interact with files in the browser. Demo The sample project can be demoed at https://kristofferstrube.github.io/Blazor.FileAPI/ On each page you can find the corresponding code for the example in the top right corner. On the API Coverage Status page you can get an overview over what parts of the API we support currently. Getting Started Prerequisites You need to install .NET 7.0 or newer to use the library. Download .NET 7 Installation You can install the package via NuGet with the Package Manager in your IDE or alternatively using the command line: Usage The package can be used in Blazor WebAssembly and Blazor Server projects. Import You also need to reference the package in order to use it in your pages. This can be done in Import.razor by adding the following. Creating wrapper instances Most of this library is wrapper classes which can be instantiated from your code using the static Create and CreateAsync methods on the wrapper classes. An example could be to create an instance of a Blob that contains the text \"Hello World!\" and gets its Size and Type , read it as a ReadableStream , read as text directly, and slice it into a","default_branch":null,"files":null,"tree":[],"storefront":"/r/KristofferStrube","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KristofferStrube/Blazor.FileAPI/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}