Multiple File Upload without using SWF in Liferay

This is post is the alternate solution for those who dont want to use Liferay's in built Multiple file up loader.
Liferay's in built multiple file up loader uses SWF (Flash) in background and there some issue with flash and other third party tools.

So we decided not use liferay's DL Multifile uploader instead we developed our own.

Basically I have used jQuery plugin at front end and in java code simply to store file in Document Library.
You can download jQuery plugin from here ...jQuery Multiple FileUpload

Above method will simply identify file inputs from the request. It will iterate each and every file input and store in DL. Even though its not a good approach but any how you can stay out of that flash using this.

Above method will rename the uploaded file to its actual name as name of the uploaded file is getting changed if you use UploadPortletRequest.

Above code is to add file into document library.

Next PostNewer Post Previous PostOlder Post Home