如何在HTML或php输入的同一文件中添加来自不同文件夹的多个文件 [英] How to Add multiple files from different folders in same file input in html or php

查看:72
本文介绍了如何在HTML或php输入的同一文件中添加来自不同文件夹的多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在html或php输入的同一文件中添加来自不同文件夹的多个文件我想使用文件输入来从不同文件夹中的多个文件.如果可能的话,怎么办?

How to Add multiple files from different folders in same file input in html or php i want to multiple files from different folders using file input it is possible. and if it is possible then how??

推荐答案

仅将< input type ="file"> 与'multiple'一起使用是不可能做到的关键词.这本身仅允许附加来自同一文件夹的多个文件.为了满足您的要求,您可能不得不使用jQuery以及JavaScript和HTML,以便在附加了同一文件夹中的一个或多个文件后提供一个额外的上传"按钮.这样,您可以附加其他文件夹中的任何其他文件,并提供某种保存"按钮,以最终附加所有文件并保存结果.

This is impossible to do just by merely using the <input type="file"> with the ' 'multiple' keyword. This by itself will only allow attaching multiple files from same folder. To complete your requirement, you will probably have to resort to using jQuery along with JavaScript and HTML, to provide an additional 'Upload' button after one or more files from the same folder are attached. This way you can attach any additional files from other folders and provide some sort of a 'Save' button, to eventually attach all files and save the result.

这篇关于如何在HTML或php输入的同一文件中添加来自不同文件夹的多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆