Fórumok

Uploading File using portlet

vicky yar, módosítva 11 év-val korábban

Uploading File using portlet

New Member Bejegyzések: 4 Csatlakozás dátuma: 2012.04.20. Legújabb bejegyzések
Guys I want to make 2 simple portlets 1 for uploading files and 2 for downloading file or could give the link of the uploaded file to download.
I have searched much, but all of the portlets are using jsf or vaadin but i want to use portlet mvc only. does anyone have code example or any website from where i could download it?
thumbnail
Jogen Gondalia, módosítva 11 év-val korábban

RE: Uploading File using portlet

New Member Bejegyzések: 4 Csatlakozás dátuma: 2010.09.21. Legújabb bejegyzések
Hi Vicky,

For your first requirement you can try this blog - http://vkbardia.blogspot.in/2012/02/multiple-file-upload-in-liferay-with.html
I used images for this one, you can use any format as per you requirement and for download link. it would be depend on where you save those files.

Regards,
Vipin Bardia
vicky yar, módosítva 11 év-val korábban

RE: Uploading File using portlet

New Member Bejegyzések: 4 Csatlakozás dátuma: 2012.04.20. Legújabb bejegyzések
Jogen Gondalia:
Hi Vicky,

For your first requirement you can try this blog - http://vkbardia.blogspot.in/2012/02/multiple-file-upload-in-liferay-with.html
I used images for this one, you can use any format as per you requirement and for download link. it would be depend on where you save those files.

Regards,
Vipin Bardia



I followed the link you mentioned and done exactly the same but its giving me error on method "read" of ImageProcessorUtil and also on "getBytes" I have tried both the libraries com.liferay.portlet.documentlibrary.util.ImageProcessorUtil; com.liferay.portal.kernel.image.Image.ImageProcessorUtil but its not working? also is there any other portlet that i could download and use with having source within it?
thumbnail
Jogen Gondalia, módosítva 11 év-val korábban

RE: Uploading File using portlet

New Member Bejegyzések: 4 Csatlakozás dátuma: 2010.09.21. Legújabb bejegyzések
If you need some portlet doing the same then you can use liferay source and check the code of "Document Library" portlet.
Here is the url from where you can find the source - download source
thumbnail
Mani kandan, módosítva 11 év-val korábban

RE: Uploading File using portlet

Expert Bejegyzések: 492 Csatlakozás dátuma: 2010.09.15. Legújabb bejegyzések
For uploading take a look this thread and for downloading try some threads like
blog and thread
vicky yar, módosítva 11 év-val korábban

RE: Uploading File using portlet

New Member Bejegyzések: 4 Csatlakozás dátuma: 2012.04.20. Legújabb bejegyzések
Its giving me javax.naming.NameNotFoundException: Name jdbc is not bound in this Context error