FileUpload (Context Context, IFileSystemManager fileSystemManager)
| Name | Type |
|---|---|
| Context |
Nucleus.Abstractions.Models.Context
he current Nucleus Context. |
| fileSystemManager |
Nucleus.Abstractions.Managers.IFileSystemManager
The file system manager instance. |
InvokeAsync (Site site, Folder folder, String filter, String controllerName, String actionName, String controlName, String target, String text, String cssClass)
| Name | Type |
|---|---|
| site |
Nucleus.Abstractions.Models.Site
The site to show folders for/upload files to. If not specified, defaults to the current site. |
| folder |
Nucleus.Abstractions.Models.FileSystem.Folder
The target Models.FileSystem.Folder where files will be uploaded. |
| filter |
String
A string that defines the file types the file input should accept. This is used as the value of the accept attribute on the rendered upload control. Accept attribute |
| controllerName |
String
The name of the controller which handles uploads |
| actionName |
String
The name of the controller action to handle the upload. Defaults to "UploadFile". |
| controlName |
String
The HTML control name. Defaults to "mediaFile". |
| target |
String
The data-target which identifies the section which is updated after selection events. |
| text |
String
The button text. Defaults to "Upload File". |
| cssClass |
String
The CSS class for the upload button. Defaults to "btn btn-secondary btn-sm ms-auto align-items-center". |