Click to See Complete Forum and Search --> : upload file path only


sreed
04-27-2006, 01:12 AM
Hi! all,
Pls help me on this. I have a requirement that end user can select a file path(only) from his pc and can send the path info to the web server, and can display the value from web server.
I used
<td class=input><input type="file" name="pathselect"></td>
when I used this code I am able to show one textbox with browse button. And I am able to select the file path from pc. When submit the value(file path) also going. But the prob is when I display the file path again means when we get the value from server, how I can display the path. When end user wants to change the path how can he do.

Pls help me on this n give me some suggesions.

Thank u in advance,

Sreedhar.

sreed
04-27-2006, 03:08 AM
Hey! no one is thr 2 help me?

pcthug
04-27-2006, 03:58 AM
Can we have a look at your server-side code?

sreed
04-28-2006, 06:01 AM
I used the javascript to select a file name and its submits the value to textbox.
this is the code

function getUrl()
{
document.addbook_manage.filert.click();
document.addbook_manage.ringtone.value=document.addbook_manage.filert.name;
}


this is working fine. after that when I am submiting on first click I got java error

Error:access is Denied

When I clicked 2nd time its submiting 2 server with "//" instead of "/"

But I need only address of the pat. thats it. I dont want 2 upload the file. file path is enough.

pls help me on