TwoSky.WebComponents.BigFileUpload
3.1.0
dotnet add package TwoSky.WebComponents.BigFileUpload --version 3.1.0
NuGet\Install-Package TwoSky.WebComponents.BigFileUpload -Version 3.1.0
<PackageReference Include="TwoSky.WebComponents.BigFileUpload" Version="3.1.0" />
<PackageVersion Include="TwoSky.WebComponents.BigFileUpload" Version="3.1.0" />
<PackageReference Include="TwoSky.WebComponents.BigFileUpload" />
paket add TwoSky.WebComponents.BigFileUpload --version 3.1.0
#r "nuget: TwoSky.WebComponents.BigFileUpload, 3.1.0"
#:package TwoSky.WebComponents.BigFileUpload@3.1.0
#addin nuget:?package=TwoSky.WebComponents.BigFileUpload&version=3.1.0
#tool nuget:?package=TwoSky.WebComponents.BigFileUpload&version=3.1.0
BigFileUpload client
The BigFileUpload client web component is used together with the BigFileUpload application (https://cronos.app/bigfileuploader/), and makes it possible to upload multiple files without file size constraints.
This plugin is only compatible with the Web3 Vidyano client.
After installing the plugin, add the following 2 lines to app.ts :
import "../big-file-upload/big-file-upload";
import "../big-file-upload/big-file-upload-dialog";
Then rebuild the frontend code.
In the backend, give an attribute the "BigFileUpload" data type and the "GenerateBigFileSession" CustomAction permissions to the PO.
Also add the BigFileUploaderClient to the services pipeline in Startup.cs
BigFileUploaderClient.AddClient(services);
The component can be provided with the necessary settings in 2 ways:
appsettings.json
"BigFileAPI": {
"ApiKey": "<an api key>",
"BigFileUrlContext": "https://cronos.app/bigfileuploader",
"MaxNumberOfFiles": "3"
}
Vidyano settings
ApiKey
BigFileUrlContext
MaxNumberOfFiles
The Vidyano settings overrule the values of appsettings.properties.
MaxNumberOfFiles can be overruled per Attribute by setting a TypeHint. Ex:
MaxFiles=2
At runtime, information about the uploaded files can be obtained as in this example:
public override void OnSave(PersistentObject obj)
{
var attribute = obj["TestUpload"];
var bigFileSessions = JsonSerializer.Deserialize<List<BigFileSession>>(attribute.Options![0]);
foreach (var bigFileSession in bigFileSessions!)
{
var url = bigFileSession.DownloadUrl;
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- Vidyano (>= 6.0.20250923.6107)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.