How can I get the <s:file />
value set to form content using Dojo ?
<s:file id="fileUpload" name="upload"/>
<script>
var fileUpload = dojo.byId("fileUpload");
content[fileUpload.name] = fileUpload.value;
dojo.xhrPost({
form : form,
content : content,
load : function(data) {
processingDialog.setContent(data); },
error : function(error) {
processingDialog.setContent(error); }
});
</script>
When submitting form upload value is passing as "c:/fake path/01.csv" and not receiving to the action