Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Upload.FileUpload.StoreFileAsync Method

Saves an uploaded file as a file in the permanent or temporary file system.

Class: YetaWF.Core.Upload.FileUpload
Namespace: YetaWF.Core.Upload
Assembly: YetaWF.Core

Syntax

public Task<string> StoreFileAsync(
    IFormFile uploadFile,
    string? folder,
    string useType,
    bool TempFile = false );

Parameters

uploadFile

File being uploaded.

folder

The folder (absolute path) where the file is saved. Must be null for temporary files.

useType

(not specified)

TempFile

(not specified)

Return Value

Returns a file name (without path) of the uploaded file in the specified folder.

See Also YetaWF.Core.Upload.FileUpload ClassYetaWF.Core Overview