Table of Contents

Class UploadAreaService

Namespace
JJMasterData.Core.DataManager.Services
Assembly
JJMasterData.Core.dll
public class UploadAreaService
Inheritance
UploadAreaService
Inherited Members

Constructors

UploadAreaService(IHttpContext, IStringLocalizer<MasterDataResources>)

public UploadAreaService(IHttpContext currentContext, IStringLocalizer<MasterDataResources> stringLocalizer)

Parameters

currentContext IHttpContext
stringLocalizer IStringLocalizer<MasterDataResources>

Methods

TryGetFile(string, out FormFileContent?)

public bool TryGetFile(string fileName, out FormFileContent? formFile)

Parameters

fileName string
formFile FormFileContent

Returns

bool

UploadFileAsync(FormFileContent, string?)

public Task<UploadAreaResultDto> UploadFileAsync(FormFileContent formFile, string? allowedTypes = null)

Parameters

formFile FormFileContent
allowedTypes string

Returns

Task<UploadAreaResultDto>

Events

OnFileUploaded

public event EventHandler<FormUploadFileEventArgs>? OnFileUploaded

Event Type

EventHandler<FormUploadFileEventArgs>

OnFileUploadedAsync

public event AsyncEventHandler<FormUploadFileEventArgs>? OnFileUploadedAsync

Event Type

AsyncEventHandler<FormUploadFileEventArgs>