1. <legend id='WHcpk'><style id='WHcpk'><dir id='WHcpk'><q id='WHcpk'></q></dir></style></legend>

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

      • <bdo id='WHcpk'></bdo><ul id='WHcpk'></ul>

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

        <tfoot id='WHcpk'></tfoot>
      2. PHP AJAX 文件上传

        PHP AJAX file upload(PHP AJAX 文件上传)

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

          <tbody id='QhhOX'></tbody>

              <bdo id='QhhOX'></bdo><ul id='QhhOX'></ul>
            • <tfoot id='QhhOX'></tfoot>
              <legend id='QhhOX'><style id='QhhOX'><dir id='QhhOX'><q id='QhhOX'></q></dir></style></legend>

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

                  本文介绍了PHP AJAX 文件上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我查看了 stackoverflow 和一般互联网,但找不到简单的 AJAX 文件上传器(只是表单提交).我发现的那些不够灵活,不符合我的目的.如果我可以将此脚本调整为文件上传,那就太好了:

                  i've looked all over stackoverflow and the general internet and i can't find a simple AJAX file uploader (Just form submission). The ones i have found aren't flexible enough and don't fit my purpose. If i could ajust this script to file uploads, that would be great:

                  <script type="text/javascript">
                   function upload(str)
                   {
                   if (str.length==0)
                   { 
                  document.getElementById("txtHint").innerHTML="";
                   return;
                    }
                   if (window.XMLHttpRequest)
                      {// code for IE7+, Firefox, Chrome, Opera, Safari
                     xmlhttp=new XMLHttpRequest();
                     }
                   else
                     {// code for IE6, IE5
                     xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                     }
                   xmlhttp.onreadystatechange=function()
                     {
                     if (xmlhttp.readyState==4 && xmlhttp.status==200)
                       {
                       document.getElementById("hint").innerHTML=xmlhttp.responseText;
                       }
                     }
                   xmlhttp.open("GET","ajax/link.php?q="+str,true);
                   xmlhttp.send();
                   }
                  

                  在 HTML 中我会有

                  In the HTML i would have

                  <input type='file' onblur='upload(this.value)'>
                  

                  谢谢

                  推荐答案

                  这里是一个简单的ajax文件上传器

                  Here is a simple ajax file uploader

                  上传

                  如果你不想要闪光灯,你可以使用这个;

                  And if you don't want flash, you may use this one;

                  AxUploader

                  这篇关于PHP AJAX 文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                • <tfoot id='O2YrB'></tfoot>

                  • <legend id='O2YrB'><style id='O2YrB'><dir id='O2YrB'><q id='O2YrB'></q></dir></style></legend>

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

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

                          <tbody id='O2YrB'></tbody>
                          <bdo id='O2YrB'></bdo><ul id='O2YrB'></ul>