Welcome to WebmasterWorld Guest from 220.127.116.11
Now I have read some things about ENCTYPE = multipart/form-data. I don't really need to read the file however I just want to get the path. What I mean is say the file they uploaded was c:\some folder\file.txt on their local machine I would like to get that path. This is just for our intranet so these paths I can pass in directly to work with the file. Also, would there be any way to get the full path if they enter a mapped drive. What I mean is say a machine is named machine01. Now on their machine that drive may be X:\some folder and on my machine that drive may be mapped as M:\some folder. I would like to get that as \\machine01\some folder. Any help on how to do this, I'm rather lost so any suggestions would be great. Thanks,
You would need to run an activeX control or some other form of client side software.
Either that or have the user input the file path themselves.
I disagree. For what you need (to send the path using POST) this is definitely 'powerful' enough, and might even be one of your only solutions.
>> I would end up with a mess of PHP and JS
If you properly organize your code this shouldn't be an issue at all.
var file_path = document.getElementById("browse").value