I have the following code:
<tr>
    <td class="labelbg">File :</td>
    <td>
        <input type="file" name="upload" id="upload"></input>
    </td>
</tr>
<tr>
    <td class="labelbg" valign="top">Remarks<sup class="required">*</sup></td>
    <td class="field">
        <textarea name="approvalremarks" cols="38" rows="4" class="field"/>
    </td>
</tr>
<td colspan="2" width="5%" align="right">
    <a href="javascript:approval()">
        <img src="/ock/images/oess_images/item_save24.png" alt="Save" border="0"/>
    </a>
</td>
</table>        
</td></tr>
I have try this code to get the fullpath of the file but it input C:\\fakepath.
How to get the correct path?
var filename = document.getElementById("upload");
alert(filename.value);
 
     
     
     
    