EasyUploader 4.2.1

dotnet add package EasyUploader --version 4.2.1
                    
NuGet\Install-Package EasyUploader -Version 4.2.1
                    
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="EasyUploader" Version="4.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasyUploader" Version="4.2.1" />
                    
Directory.Packages.props
<PackageReference Include="EasyUploader" />
                    
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 EasyUploader --version 4.2.1
                    
#r "nuget: EasyUploader, 4.2.1"
                    
#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.
#:package EasyUploader@4.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EasyUploader&version=4.2.1
                    
Install as a Cake Addin
#tool nuget:?package=EasyUploader&version=4.2.1
                    
Install as a Cake Tool

FileUploader

This package helps us to upload our file easily on local server or aws server. And also we can work with image tools that explain blew.

CheckImageContent

This class check image content and inform us if image has bad content.

IsImage(IFormFile postedFile)

ImageTools

This class use for getting images info , resizing them or changing format.

// Get size , width and height from these methods:
GetImageInfo(string imgFile) // for base64
GetImageInfo(byte[] imgFile) // for byteArray
GetImageInfo(IFormFile imgFile) // for IFormFile

// These methods can resize image
// Format can be (webp , jpeg , png) to get result as base64
ResizeImage(string imgFile, int width, int height, string format) // for base64
ResizeImage(byte[] imgFile, int width, int height, string format) // for byteArray
ResizeImage(IFormFile imgFile, int width, int height, string format) // for IFormFile

// These methods changes images format 
// Format can be (webp , jpeg , png) to get result as base64
ChangeImageFormat(string imgFile, string format)
ChangeImageFormat(byte[] imgFile, string format)
ChangeImageFormat(IFormFile imgFile, string format)

FileUploader

FileUploader class for save files on local server.

// if fileName is empty methods generate fileName by guid 
// if maxSize is not zero methods check file size before save
Upload(string file, string oldFileName, string path,string fileName = "",long maxSize = 0) // save base64
Upload(byte[] file ,string extension, string oldFileName, string path, string fileName = "", long maxSize = 0) // save byteArray
Upload(IFormFile file, string oldFileName, string path, string fileName = "", long maxSize = 0) // save IFormFile

AwsUpload

This class use for upload files on AWS buckets.

Usage : In the "Config" folder and FileUploaderServicesRegistration we have BucketConfigs that they read from appsettings on your project like following codes:

"BucketConfigs": {
    "AccessKey": "<YOUR_ACCESSKEY>",
    "SecretKey": "<YOUR_SECRETKEY>",
    "EndPoint": "<YOUR_ENDPOINT>",
    "BucketName": "<YOUR_BUCKETNAME>"
  }

Add this config to your program.cs

builder.Services.ConfigureFileUploaderServices(builder.Configuration);

methods:

// key is file name 

UploadFile(string fileBase64, string key) // upload base64 
UploadFile(byte[] file, string key) // upload byteArray

UploadFileFromFolder(string path, string key) // upload file from path

GetFileUrl(string key, int timeOut = 15) // get file url with limitation , default is 15 min

DownloadFile(string key) // download file as byteArray 

DeleteFile(string key, string versionId = "") // delete file from bucket 
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.  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. 
.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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.2.1 140 2/21/2026
4.2.0 105 2/21/2026
4.1.0 1,090 7/15/2025
3.2.0 104 2/14/2026
3.1.0 1,155 3/16/2025 3.1.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.0 258 3/16/2025 2.0.0 is deprecated because it has critical bugs.
1.1.0 2,665 4/13/2024 1.1.0 is deprecated because it has critical bugs.
1.0.0 778 12/28/2023 1.0.0 is deprecated because it has critical bugs.