开发者

Retrieving a directory location by any means

开发者 https://www.devze.com 2023-03-29 07:40 出处:网络
I need to retrieve the location of a file or directory.It would basically be like: /< input type=\"file\"/>

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消