Currently I'm using Liferay 6.04 CE , and now I want to create Portlet Plugin using MVC Portlet like Image Gallery Portlet that liferay have.And I've got problem when try to implement multiple upload that liferay have. It work properly until i click the button upload file. When i click the button upload, it won't go to action that i wrote. FYI i already success when the process using classic uploader (single upload).Is there anything wrong in my code so it won't go to my action?

I have a suggestion for your request.Before that i want to know that where you have placed the portlet.Exactly i mean is it in PRIVATE or PUBLIC PAGES.B'coz very recently i have faced the same problem of accessing a class.But finally i clarified that it is not calling if we keep it in Public Pages.Plz chk the same with you.Let me know if you got the solution/idea.

Hi.I've run into the same issue recently. You may already solved it but I'll try to describe what I found out anyway:Liferay is using SwfUpload that does not support currently opened http session. That means it opens a new one when a file is uploaded. This is a main reason to all below.

1) We have to specify 'doAsUserId' in liferay-portlet:actionURL to make it interact on behalf of particular user. If you look at PortalImpl.getUserId you'll see code that makes Liferay 'believe' that user specified correctly:

So you should use one of these actions to allow invocation chain to continue.

2) The next key point is auth token checks that LayoutAction.processPortletRequest performs. As long as new session is created for upload they generally fail. But you can change 'auth.token.ignore.actions' property to add more actions there that do not require token ckecks. SessionAuthToken reads this property and ignore relevant actions.

Then your action should go...

I also use MVCPortlet without struts but the simpliest workaround was adding <portlet:param name="struts_action" value="/image_gallery/edit_image" />to liferay-portlet:actionURL. My action started to work.Here is the line:

I have a similar requirement & I tried out the same thing using MVCPortlet.But I keep getting JSP error if I add <portlet:param name="struts_action" value="/image_gallery/edit_image" /> to my action URL tag.

Thanks for explaining the solution here. I was facing problem with document library upload .I have used multi upload in my custom portlet and in my action class file name and folder Id values were coming null. By adding <portlet:param name="struts_action" value="/document_library/edit_file_entry" /> solved the issue.