If you like this repository, please drop a ⭐ on Github!
The library is available on NuGet or run the following command in the .NET CLI:
dotnet add package UploadFileCustomExtensions
"AppSettings": {
"StorageFolder": ""
}
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddBusinessLayerServices();
services.AddDataAccessLayerRegistration();
services.AddStorageProviderService(Configuration);
}
public class ImageRequest
{
public IFormFile File { get; set; }
public string Description { get; set; }
}
At the moment this library only allows uploading images to file systems (supported extensions: jpeg, png)
Contributions and/or suggestions are always welcome.