如何在< input type ='file'中打开特定的文件夹> [英] How to open specific folder in <input type='file'>
本文介绍了如何在< input type ='file'中打开特定的文件夹>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从特定的文件夹中上传我的项目中的图像。当我点击选择文件按钮,它将进入默认文件夹或上次打开的文件夹,但我想这样做总是打开一些特定的文件夹,如 documents / all images / animals images / 。
I want to upload images in my project from specific folder. when i click on choose file button it goes to default folder or last opened folder but i want to do it always open some specific folder like documents/all images/animals images/.
<table>
<tr>
<td>First Name:</td>
<td><input type="text" name="firstName" size="10"
required="required" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="lastName" size="10"
required="required" /></td>
</tr>
<tr>
<td>Choose Image:</td>
<td><input type="file" name="photo" size="10"
required="required" /></td>
</tr>
<tr>
<td><input type="submit" value="Submit"></td>
<td><input type="reset" value="Clear" /></td>
</tr>
</table>
有人告诉我这个解决方案。
someone tell me solution for this.
推荐答案
实际上,由于纯HTML / Javascript的安全原因,这是不可能的。如果您使用ActiveX或Java Applet,但是这些技术已经过时,则不需要。
Actually that's impossible because of security reason with a pure HTML / Javascript. I don't if it's possible if you use ActiveX or Java Applet but those technologies are outdated.
这篇关于如何在< input type ='file'中打开特定的文件夹>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文