Try our conversational search powered by Generative AI!

Class FileUploadController

Inheritance
System.Object
FileUploadController
Namespace: EPiServer.Cms.Shell.UI.Controllers.Internal
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
public class FileUploadController : Controller

Constructors

FileUploadController(LocalizationService, IContentTypeRepository, IContentChangeManager, IBlobFactory, ContentMediaResolver, IValidationService, Settings, AspNetAntiForgeryOptions)

Declaration
public FileUploadController(LocalizationService localizationService, IContentTypeRepository contentTypeRepository, IContentChangeManager contentChangeManager, IBlobFactory blobFactory, ContentMediaResolver contentMediaResolver, IValidationService validationService, Settings settings, AspNetAntiForgeryOptions antiForgeryOptions)
Parameters
Type Name Description
LocalizationService localizationService
IContentTypeRepository contentTypeRepository
IContentChangeManager contentChangeManager
IBlobFactory blobFactory
ContentMediaResolver contentMediaResolver
IValidationService validationService
Settings settings
AspNetAntiForgeryOptions antiForgeryOptions

Methods

Upload(String, Boolean)

Declaration
[JsonErrorHandling]
public ActionResult Upload(string uploadDirectory, bool createAsLocalAsset)
Parameters
Type Name Description
System.String uploadDirectory
System.Boolean createAsLocalAsset
Returns
Type Description
System.Web.Mvc.ActionResult

Extension Methods