on 11-04-2015 2:13 PM
Hi, I am trying to upload the user profile picture while the user is registering. The PrincipalModel already has "profilepicture" attribute of type Media. Please let me know how to upload the user picture from the jsp page, I don't want to do it from hmc or impex.
Thanks in advance, Poornima
Simply create your JSP and a new controller to handle the uploading of the image. Have a look at this for a clean example:
https://spring.io/guides/gs/uploading-files/
Then create a new facade which uses the MediaService
to create your media with your image file data. There are a variety of methods to create your MediaModel
with the data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.