View Source
  
  
  
  
    Inheritance
      System.Object
      Microsoft.AspNetCore.Mvc.ControllerBase
      
      
      
      
      
      
      
   
  
  Assembly: Umbraco.Web.BackOffice.dll
  
  
    [Authorize(Policy = "SectionAccessMedia")]
public class MediaPickerThreeController : ContentControllerBase
   
  Constructors
  
  
    View Source
  
  MediaPickerThreeController(ICultureDictionary, ILoggerFactory, IShortStringHelper, IEventMessagesFactory, ILocalizedTextService, IJsonSerializer, IHostingEnvironment, IOptionsSnapshot<ContentSettings>, IImageUrlGenerator, IIOHelper)
  
  
  Declaration
  
    public MediaPickerThreeController(ICultureDictionary cultureDictionary, ILoggerFactory loggerFactory, IShortStringHelper shortStringHelper, IEventMessagesFactory eventMessages, ILocalizedTextService localizedTextService, IJsonSerializer serializer, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<ContentSettings> contentSettings, IImageUrlGenerator imageUrlGenerator, IIOHelper ioHelper)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | ICultureDictionary | 
        cultureDictionary | 
         | 
      
      
        | Microsoft.Extensions.Logging.ILoggerFactory | 
        loggerFactory | 
         | 
      
      
        | IShortStringHelper | 
        shortStringHelper | 
         | 
      
      
        | IEventMessagesFactory | 
        eventMessages | 
         | 
      
      
        | ILocalizedTextService | 
        localizedTextService | 
         | 
      
      
        | IJsonSerializer | 
        serializer | 
         | 
      
      
        | IHostingEnvironment | 
        hostingEnvironment | 
         | 
      
      
        | Microsoft.Extensions.Options.IOptionsSnapshot<ContentSettings> | 
        contentSettings | 
         | 
      
      
        | IImageUrlGenerator | 
        imageUrlGenerator | 
         | 
      
      
        | IIOHelper | 
        ioHelper | 
         | 
      
    
  
  Methods
  
  
    View Source
  
  
  
  
  Declaration
  
    [HttpPost]
public async Task<IActionResult> UploadMedia(List<IFormFile> file)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | List<Microsoft.AspNetCore.Http.IFormFile> | 
        file | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | Task<Microsoft.AspNetCore.Mvc.IActionResult> | 
         |