<small id='TWZ4W'></small><noframes id='TWZ4W'>

    <bdo id='TWZ4W'></bdo><ul id='TWZ4W'></ul>
  • <i id='TWZ4W'><tr id='TWZ4W'><dt id='TWZ4W'><q id='TWZ4W'><span id='TWZ4W'><b id='TWZ4W'><form id='TWZ4W'><ins id='TWZ4W'></ins><ul id='TWZ4W'></ul><sub id='TWZ4W'></sub></form><legend id='TWZ4W'></legend><bdo id='TWZ4W'><pre id='TWZ4W'><center id='TWZ4W'></center></pre></bdo></b><th id='TWZ4W'></th></span></q></dt></tr></i><div id='TWZ4W'><tfoot id='TWZ4W'></tfoot><dl id='TWZ4W'><fieldset id='TWZ4W'></fieldset></dl></div>

    <tfoot id='TWZ4W'></tfoot>
    <legend id='TWZ4W'><style id='TWZ4W'><dir id='TWZ4W'><q id='TWZ4W'></q></dir></style></legend>

        是否可以使用 HTML 表单/PHP 脚本上传文件夹

        Is it possible to upload a Folder using HTML Form / PHP script(是否可以使用 HTML 表单/PHP 脚本上传文件夹)
      1. <small id='gx3El'></small><noframes id='gx3El'>

            <i id='gx3El'><tr id='gx3El'><dt id='gx3El'><q id='gx3El'><span id='gx3El'><b id='gx3El'><form id='gx3El'><ins id='gx3El'></ins><ul id='gx3El'></ul><sub id='gx3El'></sub></form><legend id='gx3El'></legend><bdo id='gx3El'><pre id='gx3El'><center id='gx3El'></center></pre></bdo></b><th id='gx3El'></th></span></q></dt></tr></i><div id='gx3El'><tfoot id='gx3El'></tfoot><dl id='gx3El'><fieldset id='gx3El'></fieldset></dl></div>
              <bdo id='gx3El'></bdo><ul id='gx3El'></ul>
              <legend id='gx3El'><style id='gx3El'><dir id='gx3El'><q id='gx3El'></q></dir></style></legend>
                <tbody id='gx3El'></tbody>
              <tfoot id='gx3El'></tfoot>

                1. 本文介绍了是否可以使用 HTML 表单/PHP 脚本上传文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一个网站,将多张图片上传到一个网站,我正在尝试可以做到这一点的方法.目前我有一个 php 脚本,它会得到 &显示给定文件夹中的图像,如下所示:

                  I'm developing a website where multiple images are uploaded to a website and I'm playing around with ways that this can be done. At the moment I have a php script that will get & display images from a given folder which looks like this:

                  <?php
                  $dirname = "content/2014/February/";
                  $images = glob($dirname."*.*");
                  foreach($images as $image) {
                  echo '<img src="'.$image.'" /><br />';
                  }
                  ?>
                  

                  这很好用,我可以使用 css 格式化 <img> 并将 jquery 应用于图库,但是,如何首先使用 php 和 html 表单上传图像文件夹地点?

                  This works fine and I can format the <img> using css and apply jquery for the gallery, BUT, how can I upload the folder of images using php and a html form in the first place?

                  推荐答案

                  现在可以上传文件夹了.您可以通过以下代码完成它:

                  It is possible to upload a folder now. You can get it done by following below code:

                    <input type="file" webkitdirectory mozdirectory />
                  

                  您可以在此处查看演示:https://jsfiddle.net/kevalpadia/vk6Ldzae/

                  You can check the demo here: https://jsfiddle.net/kevalpadia/vk6Ldzae/

                  希望它能帮助您解决问题.

                  I hope it will help you solve your issue.

                  这篇关于是否可以使用 HTML 表单/PHP 脚本上传文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                    <bdo id='SuaKH'></bdo><ul id='SuaKH'></ul>
                    • <legend id='SuaKH'><style id='SuaKH'><dir id='SuaKH'><q id='SuaKH'></q></dir></style></legend>

                        <tfoot id='SuaKH'></tfoot>

                            <tbody id='SuaKH'></tbody>
                          • <small id='SuaKH'></small><noframes id='SuaKH'>

                            <i id='SuaKH'><tr id='SuaKH'><dt id='SuaKH'><q id='SuaKH'><span id='SuaKH'><b id='SuaKH'><form id='SuaKH'><ins id='SuaKH'></ins><ul id='SuaKH'></ul><sub id='SuaKH'></sub></form><legend id='SuaKH'></legend><bdo id='SuaKH'><pre id='SuaKH'><center id='SuaKH'></center></pre></bdo></b><th id='SuaKH'></th></span></q></dt></tr></i><div id='SuaKH'><tfoot id='SuaKH'></tfoot><dl id='SuaKH'><fieldset id='SuaKH'></fieldset></dl></div>