Example usage for com.liferay.portal.kernel.upload UploadHandler upload

List of usage examples for com.liferay.portal.kernel.upload UploadHandler upload

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.upload UploadHandler upload.

Prototype

public void upload(PortletRequest portletRequest, PortletResponse portletResponse) throws PortalException;

Source Link

Usage

From source file:com.liferay.wiki.web.internal.portlet.action.UploadPageAttachmentMVCActionCommand.java

License:Open Source License

@Override
protected void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {

    long resourcePrimKey = ParamUtil.getLong(actionRequest, "resourcePrimKey");

    UploadHandler uploadHandler = new PageAttachmentWikiUploadHandler(resourcePrimKey);

    uploadHandler.upload(actionRequest, actionResponse);
}