开发者

Easiest way to get the absolute path of directory from browser

开发者 https://www.devze.com 2022-12-13 16:38 出处:网络
I allow my users to upload files from a directory. I use SWFUpload so that they can upload multiple files easily. However, I need to get the absolute path of the directory from which they are uploadin

I allow my users to upload files from a directory. I use SWFUpload so that they can upload multiple files easily. However, I need to get the absolute path of the directory from which they are uploading.

A little research tells me that it can't be done in plain HTML/Javascript or in Flash.

Java applets seem to support this, so that's what I'm planning on using. I guess ActiveX can also do it, but I don't know much about ActiveX stuff, so I would rath开发者_运维百科er avoid it.

Also, I can assume that the users are using Windows (XP or greater) and IE.

It there an easier way (other than writing a Java applet) that I'm missing? Having the user type in the directory into a textfield is an option, but not a very good one...

Thanks!


Yes, Its cannot be done normally, and Java is not enabled by everyone

So, Put a extra textbox other than file upload box, and ask users to copy and paste the full path there.

PS: Thats really one of the option

0

精彩评论

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

关注公众号