开发者

attaching a file path in a html form

<form>
     <label for="attachment">Attachment:</label> 
     <input type="file" name="attachment" id="attachment">
     <input type="submit">
</form> 

I want to attach the file path to a form. I am doing it using the following code, but I want that the pop开发者_如何学编程 up window should open to a specified path, say D:\newfolder, so the user doesn't need to go to D: and then newfolder to attach the file.

Is there any way I can set this predefined path?


This can't be done in any browser for security reasons.

As far as I know, It's also not possible using a Flash-based uploader like SWFUpload.

You may be able to pre-set the path using an alternative Java-based uploader that has more liberal access to the client's computer, but this feature is hardly worth making the switch to that technology and the additional requirements and hassles it brings along.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜