hi , i am trying to do a file upload with the help of myfaces component given for same. but i have a problem with the location of the storage of the file that is being uploaded .... i am able to upload my file successfully..... but i want to have my uploaded files placed in the location which is specified by me. can anyone please help me with the code as to how to do this.....using myfaces upload component...... Any immediate help would be really appreciated as it is a kind of urgent...
There is nothing in MyFaces I know that allows you to specify this. They only specify the intermediate location in the web.xml file. Though, you can basically do the same thing. You could use a context-param and initialize a path location from there and access it via the FacesContext or you could just have a String constant that defines this location in your java code or any other config file or means.
Joined: Jul 15, 2005
There's a reason why myFaces is open source... take advantage of it... (with compliance of the license of course)