Retrieving a directory location by any means
I need to retrieve the location of a file or directory. It would basically be like:
/< input type="file"/>
but I would only need to return me the location of the file or directory.
I don't have an issue with the file use case currently, but I cannot find a solution for the directory use case. I've looked around online and seen people saying it cannot be done with just html and I would need to use PHP or Flash. Flash isn't exactly 开发者_JAVA百科an option, so does anyone have any tips on doing this with PHP or just any suggestions in general?
Thanks,
Brad
This is too much of a security risk for a browser to allow by default. You will need to be able to run code on the client machine to retrieve the directory, so client-side solutions like Flash or ActiveX are your only options.
精彩评论