0

I have html as follows:

<input type="file" name="p_pict" />
<input type="button" value="Upload" onclick="p_Upload()"/>

With the Browse button I get a full file pathname including backslashes.

The javascript is:

function p_Upload()
{
    alert(document.forms[0].p_pict.value);
}

The alert displays only the file name. Everything up to the last backslash is removed.

Why????

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by GeoffC
0

Thanks Airshow. I will have to use a different approach.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.