Question : How do I get the value of xpages file upload

Need to be able to access the value of a xpage file upload ie, the path & filename, I can see it's in the value when looking at firefox with firebug but getItemValue returns nothing.

If this is not possible then I need to use the std input type="file" but am having trouble passing that value to a sessionScope.
Thanks
Neil

Answer : How do I get the value of xpages file upload

I hope this is more what you need:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
	
	<xp:panel style="height:126.0px">
		<xp:button value="Get Value" id="button1">
			<xp:eventHandler event="onclick" submit="true"
				refreshMode="complete" immediate="false" save="false">
				<xp:this.action><![CDATA[#{javascript://sessionScope.f1 = getComponent("fileUpload1").filename;
}]]></xp:this.action>
				<xp:this.script>
					<xp:executeClientScript>
						<xp:this.script><![CDATA[document.getElementById("#{id:inputText1}").value= document.getElementById("#{id:fileUpload1}").value;]]></xp:this.script>
					</xp:executeClientScript>
				</xp:this.script>
			</xp:eventHandler>
		</xp:button>
		<xp:br></xp:br>
		<xp:label value="#{javascript:sessionScope.f1}" id="label1"></xp:label>
		<xp:br></xp:br>
		<xp:fileUpload id="fileUpload1" value="#{sessionScope.fv}"
			mimetype="text/html" immediate="true">
		</xp:fileUpload>
		<xp:br></xp:br>
		<xp:br></xp:br>
		<xp:inputText id="inputText1" value="#{applicationScope.FileName}"></xp:inputText>
		<xp:br></xp:br>
	</xp:panel>
</xp:view>
Random Solutions  
 
programming4us programming4us