使用文件系统路径填写文本字段
我有一个 HTML 表单,我们收集的数据之一是文件夹位置。现在用户必须手动输入路径。我被要求让这件事变得更容易。我的想法是提供一个文件输入字段,让用户在所需文件夹中选择一个文件,然后使用 javascript 解析完整的文件系统路径,并填充其他字段。产品负责人似乎喜欢这个想法。 因为我一直在尝试想出一些 javascript 来做到这一点,但还不是很成功。有什么建议吗?
I have an HTML form and one the pieces of data we are collecting is a folder location. Right now the users have to manually input the path. I've been asked to make this easier. My thought was to provide a file input field, and have the user select a file in the needed folder, and then use javascript to parse the full file system path, and populate the other field. The product owners seemed to like that idea.
Since I have been trying to come up with some javascript to do this, and haven't been very successful. Any recommendations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
出于安全原因,故意无法访问此信息。
This information is deliberately inaccessible for security reasons.