View Source
Class TinyMceController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "SectionAccessForTinyMce")]
public class TinyMceController : UmbracoAuthorizedApiController
Constructors
View Source
TinyMceController(IHostingEnvironment, IShortStringHelper, IOptionsSnapshot<ContentSettings>, IIOHelper, IImageUrlGenerator)
Declaration
public TinyMceController(IHostingEnvironment hostingEnvironment, IShortStringHelper shortStringHelper, IOptionsSnapshot<ContentSettings> contentSettings, IIOHelper ioHelper, IImageUrlGenerator imageUrlGenerator)
Parameters
Type |
Name |
Description |
IHostingEnvironment |
hostingEnvironment |
|
IShortStringHelper |
shortStringHelper |
|
Microsoft.Extensions.Options.IOptionsSnapshot<ContentSettings> |
contentSettings |
|
IIOHelper |
ioHelper |
|
IImageUrlGenerator |
imageUrlGenerator |
|
Methods
View Source
Declaration
[HttpPost]
public async Task<IActionResult> UploadImage(List<IFormFile> file)
Parameters
Type |
Name |
Description |
List<Microsoft.AspNetCore.Http.IFormFile> |
file |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|