KenticoAttachmentsDialogControllerGetAttachments Method |
Gets page attachments.
Namespace: Kentico.Components.Web.Mvc.Dialogs.InternalAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax public ActionResult GetAttachments(
int pageId,
string allowedExtensions
)
Parameters
- pageId
- Type: SystemInt32
ID of a page for which the attachments should be retrieved. - allowedExtensions
- Type: SystemString
Semicolon separated list of allowed file extensions.
Return Value
Type:
ActionResultExceptions Exception | Condition |
---|
ArgumentException | Throws when pageId is not positive number. |
See Also