Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
处理JavaScript文件对象时遇到问题-如何将它们传递到CodeIgniter_Javascript_Php_Jquery_Twitter Bootstrap_Codeigniter - Fatal编程技术网

处理JavaScript文件对象时遇到问题-如何将它们传递到CodeIgniter

处理JavaScript文件对象时遇到问题-如何将它们传递到CodeIgniter,javascript,php,jquery,twitter-bootstrap,codeigniter,Javascript,Php,Jquery,Twitter Bootstrap,Codeigniter,我在处理JS文件对象时遇到问题。我正在使用拖放模式文件上传插件,可以在这里找到: 以下是我处理文件上载的特定代码: $.FileDialog({ // MIME type of accepted files, e. g. image/jpeg accept: "*", // cancel button cancelButton: "Close", // drop zone

我在处理JS文件对象时遇到问题。我正在使用拖放模式文件上传插件,可以在这里找到:

以下是我处理文件上载的特定代码:

$.FileDialog({

            // MIME type of accepted files, e. g. image/jpeg
            accept: "*",

            // cancel button
            cancelButton: "Close",

            // drop zone message
            dragMessage: "Drop files here",

            // the height of drop zone in pixels
            dropheight: 400,

            // error message
            errorMessage: "An error occured while loading file",

            // whether it is possible to choose multiple files or not.
            multiple: true,

            // OK button
            okButton: "OK",

            // file reading mode.
            // BinaryString, Text, DataURL, ArrayBuffer
            readAs: "DataURL",

            // remove message
            removeMessage: "Remove file",

            // file dialog title
            title: "Load file(s)"

            });
        // handle files choice when done
        }).on('files.bs.filedialog', function(ev) {
          var files_list = ev.files;
          // DO SOMETHING
          alert(files_list[0].content);
        }).on('cancel.bs.filedialog', function(ev) {
          // DO SOMETHING
          // handle dialog cancelling       
        });
如您所见,我试图发出警报,以便查看是否有任何文件正在上载,但没有显示任何内容。我想知道的是这个脚本是否真的有效。我对如何调试它有点迷茫。如果是的话。我下一步将如何将文件数据获取到codeigniter,以便将其上载到服务器


谢谢你的帮助

在Chrome、IE或Firefox中按F12,然后切换到console选项卡,查看是否有任何错误。这是我检查的第一件事。没有。在Chrome、IE或Firefox中按F12,然后切换到控制台选项卡,查看是否有任何错误。这是我检查的第一件事。那里什么也没有。