![]() |
VOOZH | about |
dotnet add package file-upload-helper --version 1.3.6.1
NuGet\Install-Package file-upload-helper -Version 1.3.6.1
<PackageReference Include="file-upload-helper" Version="1.3.6.1" />
<PackageVersion Include="file-upload-helper" Version="1.3.6.1" />Directory.Packages.props
<PackageReference Include="file-upload-helper" />Project file
paket add file-upload-helper --version 1.3.6.1
#r "nuget: file-upload-helper, 1.3.6.1"
#:package file-upload-helper@1.3.6.1
#addin nuget:?package=file-upload-helper&version=1.3.6.1Install as a Cake Addin
#tool nuget:?package=file-upload-helper&version=1.3.6.1Install as a Cake Tool
The file-upload-helper now supports dependency injection with strategies for various cloud providers:
AddFileWithAWSS3StrategyAddFileWithAzureBlobStrategyAddFileWithFirebaseStorageStrategyAddFileWithLocalFileSystemStrategyfile-upload-helper accelerates .Net development by providing functionalities such as:
wwwroot directory/filesystem.Add the package to your project via nuget.org or use the commands:
dotnet add package file-upload-helper --version 1.3.6Install-Package file-upload-helper -Version 1.3.6public class Demo
{
private readonly IUploadHelperStrategy strategy;
public Demo(IUploadHelperStrategy strategy){
this.strategy = strategy
}
strategy.PutAsync() takes file(IFormFile), directory/path and cancelatioToken and returns uploaded filename/download url.
strategy.RemoveAsync() takes filename to be deleted and directory/path returns true if deletion was successful
}
var builder = WebApplication.CreateBuilder(args);
- To use with AWS S3
builder.Services.AddFileWithAWSS3trategy(new AWSS3Credentials());
Also support the configuration of notification lambda to be triggered by this Bucket events for S3 operation
builder.Services.AddFileWithAWSS3trategy(new AWSS3Credentials(), configure =>
{
configure.LambdaFunctionConfigurations = new List<LambdaFunctionConfiguration>{
new LambdaFunctionConfiguration{
Id = "lambda",
Events = new List<EventType>{"s3:ObjectCreated:Put"},
FunctionArn = builder.Configuration["AWS_LAMBDA_FUNCTION_ARN"]
}
};
});
-To Use with Firebase storage
builder.Services.AddFileWithAFirebaseStorageStrategy(new FirebaseStorageCredentials());
-To Use with Azure Blob storage
builder.Services.AddFileWithAZureBlobStrategy(new AzureCredentials());
-To Use With Local FileSysyem
builder.Services.AddFileWithLocalFileSystemStrategy(builder.Environment);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.6.1 | 983 | 1/30/2024 |
| 1.3.6 | 284 | 1/2/2024 |
| 1.3.5 | 235 | 1/2/2024 |
| 1.3.4.1 | 252 | 1/1/2024 |
| 1.3.4 | 232 | 1/1/2024 |
| 1.3.3 | 240 | 12/29/2023 |
| 1.3.2 | 232 | 12/29/2023 |
| 1.3.1 | 274 | 12/29/2023 |
| 1.3.0 | 246 | 12/29/2023 |
| 1.2.101 | 309 | 6/22/2023 |
| 1.2.1 | 249 | 6/22/2023 |
| 1.2.0 | 279 | 6/20/2023 |
| 1.0.103 | 287 | 6/20/2023 |
| 1.0.102 | 258 | 6/20/2023 |
| 1.0.101 | 286 | 6/20/2023 |
| 1.0.10 | 288 | 6/20/2023 |
| 1.0.8 | 502 | 10/13/2022 |