Msb.FileUpload 1.0.2

dotnet add package Msb.FileUpload --version 1.0.2                
NuGet\Install-Package Msb.FileUpload -Version 1.0.2                
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="Msb.FileUpload" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Msb.FileUpload --version 1.0.2                
#r "nuget: Msb.FileUpload, 1.0.2"                
#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.
// Install Msb.FileUpload as a Cake Addin
#addin nuget:?package=Msb.FileUpload&version=1.0.2

// Install Msb.FileUpload as a Cake Tool
#tool nuget:?package=Msb.FileUpload&version=1.0.2                

Code example for asp.net core


using Msb.FileUpload;
 [Route("api/[controller]")]

    public class UploadController : ControllerBase
    {
        private readonly FileUploadCore _fileUpload;

        public UploadController(IWebHostEnvironment environment)
        {
            _fileUpload = new FileUploadCore(environment);
        }
        [HttpPost("upload")]
        public  FileResponse Upload([FromForm] IFormFile file)
        {
            _fileUpload.Upload(file);//For File Upload
            _fileUpload.Upload(file,new FileOption() { DeleteFileName="fileName"});//For File Upload with exist file
            _fileUpload.Delete("1fe7cea34c334479abc952c78f6dcdc0.pdf"); // for  delete like Upload/test/images

            _fileUpload.Upload(file, new FileOption() { CustomUploadPath = "Your custome folder" });// for custome upload like Upload/test/images
            _fileUpload.Upload(file, new FileOption() { CustomUploadPath = "Your custome folder", DeleteFileName = "fileName" });// for custome upload with delete like Upload/test/images
            _fileUpload.Delete("1fe7cea34c334479abc952c78f6dcdc0.pdf", new FileOption() { CustomUploadPath = "Your custome folder" }); // for custome delete like Upload/test/images



            return _fileUpload.Upload(file);
        }
    }

Code example for asp.net MVC

using Msb.FileUpload

  public class UploadController : ApiController
    {
        public FileResponse Upload()
        {
            HttpPostedFile file = HttpContext.Current.Request.Files["File"];

            FileUpload.Upload(file);//For File Upload
            FileUpload.Upload(file, new FileOption() { DeleteFileName = "fileName" });//For File Upload with exist file
            FileUpload.Delete("1fe7cea34c334479abc952c78f6dcdc0.pdf"); // for  delete like Upload/test/images

            FileUpload.Upload(file, new FileOption() { CustomUploadPath = "Your custome folder" });// for custome upload like Upload/test/images
            FileUpload.Upload(file, new FileOption() { CustomUploadPath = "Your custome folder", DeleteFileName = "fileName" });// for custome upload with delete like Upload/test/images
            FileUpload.Delete("1fe7cea34c334479abc952c78f6dcdc0.pdf", new FileOption() { CustomUploadPath = "Your custome folder" }); // for custome delete like Upload/test/images



            return FileUpload.Upload(file);
        }
    }
    ```
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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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.
  • .NETStandard 2.0

    • No dependencies.

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
1.0.2 92 9/8/2024
1.0.1 106 9/6/2024
1.0.0 102 9/6/2024