【问题标题】:Multiple files upload (Array) with CodeIgniter 2.0使用 CodeIgniter 2.0 上传多个文件(数组)
【发布时间】:2012-07-16 11:37:03
【问题描述】:

我一直在寻找和努力 3 天来让这个工作,但我就是做不到。 我想要做的是使用多文件输入表单,然后上传它们。我不能只使用固定数量的文件来上传。我在 StackOverflow 上尝试了很多解决方案,但我无法找到一个可行的解决方案。

这是我的上传控制器

<?php

class Upload extends CI_Controller {

function __construct()
{
    parent::__construct();
    $this->load->helper(array('form', 'url','html'));
}

function index()
{    
    $this->load->view('pages/uploadform', array('error' => ' ' ));
}

function do_upload()
{
    $config['upload_path'] = './Images/';
    $config['allowed_types'] = 'gif|jpg|png';


    $this->load->library('upload');

 foreach($_FILES['userfile'] as $key => $value)
    {

        if( ! empty($key['name']))
        {

            $this->upload->initialize($config);

            if ( ! $this->upload->do_upload($key))
            {
                $error['error'] = $this->upload->display_errors();

                $this->load->view('pages/uploadform', $error);
            }    
            else
            {
                $data[$key] = array('upload_data' => $this->upload->data());

                $this->load->view('pages/uploadsuccess', $data[$key]);


            }
         }

    }    
  }    
 }
 ?> 

我的上传表单是这个。

 <html>
 <head>
    <title>Upload Form</title>
</head>
<body>

<?php echo $error;?>

<?php echo form_open_multipart('upload/do_upload');?>

<input type="file" multiple name="userfile[]" size="20" />
<br /><br />


<input type="submit" value="upload" />

</form>

</body>
</html> 

我一直有这个错误:

您没有选择要上传的文件。

这是示例的数组:

Array ( [userfile] => Array ( [name] => Array ( [0] => youtube.png [1] => zergling.jpg ) [type] => Array ( [0] => image/ png [1] => image/jpeg ) [tmp_name] => 数组 ( [0] => E:\wamp\tmp\php7AC2.tmp [1] => E:\wamp\tmp\php7AC3.tmp ) [错误] => 数组 ( [0] => 0 [1] => 0 ) [大小] => 数组 ( [0] => 35266 [1] => 186448 ) ) )

如果我选择 2 个文件,我会连续 5 次这样做。 我也使用标准的上传库。

【问题讨论】:

  • 老实说,我很难相信$key 实际上是foreach 循环中的一个数组。
  • foreach( $_FILES as $file ){ //do_upload( $file ) }
  • @KemalFadillah 实际上是这样。 Gorelative,它不起作用我在 isset 中得到非法偏移类型或在上传库文件中为空
  • @CinetiK 如果$key 确实像您所说的那样是一个数组,那么在您调用do_upload() 时将其作为参数传递是没有任何意义的。因为函数需要一个字符串参数。
  • 嗨,我试过这个代码,图像没有移动到给定的文件夹

标签: arrays file codeigniter upload


【解决方案1】:

在你的帮助下我终于成功了!

这是我的代码:

 function do_upload()
{       
    $this->load->library('upload');

    $files = $_FILES;
    $cpt = count($_FILES['userfile']['name']);
    for($i=0; $i<$cpt; $i++)
    {           
        $_FILES['userfile']['name']= $files['userfile']['name'][$i];
        $_FILES['userfile']['type']= $files['userfile']['type'][$i];
        $_FILES['userfile']['tmp_name']= $files['userfile']['tmp_name'][$i];
        $_FILES['userfile']['error']= $files['userfile']['error'][$i];
        $_FILES['userfile']['size']= $files['userfile']['size'][$i];    

        $this->upload->initialize($this->set_upload_options());
        $this->upload->do_upload();
    }
}

private function set_upload_options()
{   
    //upload an image options
    $config = array();
    $config['upload_path'] = './Images/';
    $config['allowed_types'] = 'gif|jpg|png';
    $config['max_size']      = '0';
    $config['overwrite']     = FALSE;

    return $config;
}

谢谢你们!

【讨论】:

  • CinetiK,如果我们的帮助有用(您已经通过我的回答找到了解决方案),您必须标记我们的回答有用!!解决方案就在我的回答中!!
  • 为我工作。有什么方法可以将所有选定的文件制作成表格吗?
  • 为此,我建议您检查如何使用 jQuery/Ajax 上传文件(另请检查 grocerycrud.com/image-crud
  • 这段代码也是我让它工作的唯一方法。然而它是如此丑陋以至于需要转换数组值......应该是一个更漂亮的解决方案!可能扩展 ul 库?
  • @jtheman 是的,我同意这不是漂亮的编码,但这是我当时能找到的唯一解决方案,我设法将它与 Ajax 上传一起使用,这样应用程序就可以在上传文件时显示文件。
【解决方案2】:

您应该在 CI https://github.com/stvnthomas/CodeIgniter-Multi-Upload 中使用此库进行多路上传

安装只需将 MY_Upload.php 文件复制到您的应用程序库目录。

使用:控制器中的函数test_up

public function test_up(){
if($this->input->post('submit')){
    $path = './public/test_upload/';
    $this->load->library('upload');
    $this->upload->initialize(array(
        "upload_path"=>$path,
        "allowed_types"=>"*"
    ));
    if($this->upload->do_multi_upload("myfile")){
        echo '<pre>';
        print_r($this->upload->get_multi_upload_data());
        echo '</pre>';
    }
}else{
    $this->load->view('test/upload_view');
}

}

applications/view/test 文件夹中的upload_view.php

<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="myfile[]" id="myfile" multiple>
<input type="submit" name="submit" id="submit" value="submit"/>

【讨论】:

  • 这种方法有问题。 do_multi_upload 函数有问题。不返回任何东西。黑屏错误
【解决方案3】:

试试这个代码。

对我来说很好用

每次库都必须初始化

    function do_upload()
    {
        foreach ($_FILES as $index => $value)
        {
            if ($value['name'] != '')
            {
                $this->load->library('upload');
                $this->upload->initialize($this->set_upload_options());

                //upload the image
                if ( ! $this->upload->do_upload($index))
                {
                    $error['upload_error'] = $this->upload->display_errors("<span class='error'>", "</span>");
                    
                    //load the view and the layout
                    $this->load->view('pages/uploadform', $error);

                    return FALSE;
                }
                else
                {
                    
                     $data[$key] = array('upload_data' => $this->upload->data());

                     $this->load->view('pages/uploadsuccess', $data[$key]);

       
                }
            }
        }

    }

    private function set_upload_options()
    {   
        //upload an image options
        $config = array();
        $config['upload_path'] = 'your upload path';
        $config['allowed_types'] = 'gif|jpg|png';
        
        return $config;
    }

进一步编辑

我找到了必须使用唯一输入框上传文件的方法

CodeIgniter 不支持多个文件。在 foreach 中使用 do_upload() 与在外部使用它没有什么不同。

您将需要在没有 CodeIgniter 帮助的情况下处理它。这是一个例子https://github.com/woxxy/FoOlSlide/blob/master/application/controllers/admin/series.php#L331-370

https://stackoverflow.com/a/9846065/1171049

这是你在评论中说的:)

【讨论】:

  • 它仍然对我不起作用。使用您的函数和我的视图(上面引用),我得到 > is_uploaded_file() 期望参数 1 是字符串,库文件 Upload.php 中给出的数组(第 161 行)我当然会更改上传路径。它仍然告诉我>没有选择文件
  • 我发现了问题,你需要在foreach上进行另一个交互,因为使用多个上传输入时$_FILES的格式是不同的。例如:[name] => 数组([0] => youtube.png [1] => zergling.jpg)。不是数组数组是一个数组,其属性为数组
  • 所以我需要一个函数来将我的“数组”修改为一个好的数组,然后它会正常工作吗?
【解决方案4】:

这里还有一段代码:

参考:https://github.com/stvnthomas/CodeIgniter-Multi-Upload

【讨论】:

    【解决方案5】:

    正如 Carlos Rincones 所建议的那样;不要害怕与超全球玩家一起玩。

    $files = $_FILES;
    
    for($i=0; $i<count($files['userfile']['name']); $i++)
    {
        $_FILES = array();
        foreach( $files['userfile'] as $k=>$v )
        {
            $_FILES['userfile'][$k] = $v[$i];                
        }
    
        $this->upload->do_upload('userfile')
    }
    

    【讨论】:

    • 您好,感谢您的智能代码。您的代码在我的项目中运行良好。如何为您的代码获取多个图像的文件名。等待你的答复。这种方式是否可行 $this->upload->data('userfile');。我已经尝试过这种方式,但没有成功。谢谢你
    【解决方案6】:

    所有已发布的文件都将包含在 $_FILES 变量中,为了使用 codeigniter 上传库,我们需要提供我们用于上传的 field_name(默认情况下它将是 'userfile'),因此我们获取所有已发布的文件并创建另一个 files 数组,为每个文件创建我们自己的名称,并将此名称提供给 codeigniter 库 do_upload 函数。

    if(!empty($_FILES)){
        $j = 1;                 
        foreach($_FILES as $filekey=>$fileattachments){
            foreach($fileattachments as $key=>$val){
                if(is_array($val)){
                    $i = 1;
                    foreach($val as $v){
                        $field_name = "multiple_".$filekey."_".$i;
                        $_FILES[$field_name][$key] = $v;
                        $i++;   
                    }
                }else{
                    $field_name = "single_".$filekey."_".$j;
                    $_FILES[$field_name] = $fileattachments;
                    $j++;
                    break;
                }
            }                       
            // Unset the useless one 
            unset($_FILES[$filekey]);
        }
        foreach($_FILES as $field_name => $file){
            if(isset($file['error']) && $file['error']==0){
                $config['upload_path'] = [upload_path];
                $config['allowed_types'] = [allowed_types];
                $config['max_size'] = 100;
                $config['max_width'] = 1024;
                $config['max_height'] = 768;
                $this->load->library('upload', $config);
                $this->upload->initialize($config);
    
                if ( ! $this->upload->do_upload($field_name)){
                    $error = array('error' => $this->upload->display_errors());
                    echo "Error Message : ". $error['error'];
                }else{
                    $data = $this->upload->data();
                    echo "Uploaded FileName : ".$data['file_name'];
                    // Code for insert into database
                }
            }
        }
    }
    

    【讨论】:

      【解决方案7】:
          public function imageupload() 
          {
      
            $count = count($_FILES['userfile']['size']);
      
        $config['upload_path'] = './uploads/';
        $config['allowed_types'] = 'gif|jpg|png|bmp';
        $config['max_size']   = '0';
        $config['max_width']  = '0';
        $config['max_height']  = '0';
      
        $config['image_library'] = 'gd2';
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = FALSE;
        $config['width'] = 50;
        $config['height'] = 50;
      
        foreach($_FILES as $key=>$value)
        { 
           for($s=0; $s<=$count-1; $s++)
           {
           $_FILES['userfile']['name']=$value['name'][$s];
           $_FILES['userfile']['type']    = $value['type'][$s];
           $_FILES['userfile']['tmp_name'] = $value['tmp_name'][$s]; 
           $_FILES['userfile']['error']       = $value['error'][$s];
           $_FILES['userfile']['size']    = $value['size'][$s];  
      
               $this->load->library('upload', $config);
      
               if ($this->upload->do_upload('userfile'))
               {
                 $data['userfile'][$i] = $this->upload->data();
             $full_path = $data['userfile']['full_path'];
      
      
                 $config['source_image'] = $full_path;
                 $config['new_image'] = './uploads/resiezedImage';
      
                 $this->load->library('image_lib', $config);
                 $this->image_lib->resize(); 
                 $this->image_lib->clear();
      
               }
               else
               {
                 $data['upload_errors'][$i] = $this->upload->display_errors();
               } 
           }
        }
      }
      

      【讨论】:

        【解决方案8】:

        我在自定义库中使用了以下代码
        从我的控制器中调用它,如下所示,

        function __construct() {<br />
           &nbsp;&nbsp;&nbsp; parent::__construct();<br />
           &nbsp;&nbsp;&nbsp;   $this->load->library('CommonMethods');<br />
        }<br />
        
        $config = array();<br />
        $config['upload_path'] = 'assets/upload/images/';<br />
        $config['allowed_types'] = 'gif|jpg|png|jpeg';<br />
        $config['max_width'] = 150;<br />
        $config['max_height'] = 150;<br />
        $config['encrypt_name'] = TRUE;<br />
        $config['overwrite'] = FALSE;<br />
        
        // upload multiplefiles<br />
        $fileUploadResponse = $this->commonmethods->do_upload_multiple_files('profile_picture', $config);
        

        /**
         * do_upload_multiple_files - Multiple Methods
         * @param type $fieldName
         * @param type $options
         * @return type
         */
        public function do_upload_multiple_files($fieldName, $options) {
        
            $response = array();
            $files = $_FILES;
            $cpt = count($_FILES[$fieldName]['name']);
            for($i=0; $i<$cpt; $i++)
            {           
                $_FILES[$fieldName]['name']= $files[$fieldName]['name'][$i];
                $_FILES[$fieldName]['type']= $files[$fieldName]['type'][$i];
                $_FILES[$fieldName]['tmp_name']= $files[$fieldName]['tmp_name'][$i];
                $_FILES[$fieldName]['error']= $files[$fieldName]['error'][$i];
                $_FILES[$fieldName]['size']= $files[$fieldName]['size'][$i];    
        
                $this->CI->load->library('upload');
                $this->CI->upload->initialize($options);
        
                //upload the image
                if (!$this->CI->upload->do_upload($fieldName)) {
                    $response['erros'][] = $this->CI->upload->display_errors();
                } else {
                    $response['result'][] = $this->CI->upload->data();
                }
            }
        
            return $response;
        }
        

        【讨论】:

          【解决方案9】:
          <form method="post" action="<?php echo base_url('submit'); ?>" enctype="multipart/form-data">
              <input type="file" name="userfile[]" id="userfile"  multiple="" accept="image/*">
          </form>
          

          模型:文件上传

          class FilesUpload extends CI_Model {
          
              public function setFiles()
              {
                  $name_array = array();
                  $count = count($_FILES['userfile']['size']);
                  foreach ($_FILES as $key => $value)
                      for ($s = 0; $s <= $count - 1; $s++) {
                          $_FILES['userfile']['name'] = $value['name'][$s];
                          $_FILES['userfile']['type'] = $value['type'][$s];
                          $_FILES['userfile']['tmp_name'] = $value['tmp_name'][$s];
                          $_FILES['userfile']['error'] = $value['error'][$s];
                          $_FILES['userfile']['size'] = $value['size'][$s];
          
                          $config['upload_path'] = 'assets/product/';
                          $config['allowed_types'] = 'gif|jpg|png';
                          $config['max_size'] = '10000000';
                          $config['max_width'] = '51024';
                          $config['max_height'] = '5768';
          
                          $this->load->library('upload', $config);
                          if (!$this->upload->do_upload()) {
                              $data_error = array('msg' => $this->upload->display_errors());
                              var_dump($data_error);
                          } else {
                              $data = $this->upload->data();
                          }
                          $name_array[] = $data['file_name'];
                      }
          
                  $names = implode(',', $name_array);
          
                  return $names;
              }
          }
          

          控制器提交

          class Submit extends CI_Controller {
              function __construct()
                  {
                  parent::__construct();
                  $this->load->helper(array('html', 'url'));
                  }
          
                  public function index()
                  {
                  $this->load->model('FilesUpload');
          
                  $data = $this->FilesUpload->setFiles();
          
                  echo '<pre>';
                  print_r($data);
          
              }
          }
          

          【讨论】:

            【解决方案10】:
                    // Change $_FILES to new vars and loop them
                    foreach($_FILES['files'] as $key=>$val)
                    {
                        $i = 1;
                        foreach($val as $v)
                        {
                            $field_name = "file_".$i;
                            $_FILES[$field_name][$key] = $v;
                            $i++;   
                        }
                    }
                    // Unset the useless one ;)
                    unset($_FILES['files']);
            
                    // Put each errors and upload data to an array
                    $error = array();
                    $success = array();
            
                    // main action to upload each file
                    foreach($_FILES as $field_name => $file)
                    {
                        if ( ! $this->upload->do_upload($field_name))
                        {
                            echo ' failed ';
                        }else{
                            echo ' success ';
                        }
                    }
            

            【讨论】:

              【解决方案11】:
              function imageUpload(){
                          if ($this->input->post('submitImg') && !empty($_FILES['files']['name'])) {
                              $filesCount = count($_FILES['files']['name']);
                              $userID = $this->session->userdata('userID');
                              $this->load->library('upload');
              
                              $config['upload_path'] = './userdp/';
                              $config['allowed_types'] = 'jpg|png|jpeg';
                              $config['max_size'] = '9184928';
                              $config['max_width']  = '5000';
                              $config['max_height']  = '5000';
              
                              $files = $_FILES;
                              $cpt = count($_FILES['files']['name']);
              
                              for($i = 0 ; $i < $cpt ; $i++){
                                  $_FILES['files']['name']= $files['files']['name'][$i];
                                  $_FILES['files']['type']= $files['files']['type'][$i];
                                  $_FILES['files']['tmp_name']= $files['files']['tmp_name'][$i];
                                  $_FILES['files']['error']= $files['files']['error'][$i];
                                  $_FILES['files']['size']= $files['files']['size'][$i];    
              
                                  $imageName = 'image_'.$userID.'_'.rand().'.png';
              
                                  $config['file_name'] = $imageName;
              
                                  $this->upload->initialize($config);
                                  if($this->upload->do_upload('files')){
                                      $fileData = $this->upload->data(); //it return
                                      $uploadData[$i]['picturePath'] = $fileData['file_name'];
                                  }
                              }
              
                              if (!empty($uploadData)) {
                                  $imgInsert = $this->insert_model->insertImg($uploadData);
                                  $statusMsg = $imgInsert?'Files uploaded successfully.':'Some problem occurred, please try again.';
                                  $this->session->set_flashdata('statusMsg',$statusMsg);
                                  redirect('home/user_dash');
                              }
                          }
                          else{
                              redirect('home/user_dash');
                          }
                      }
              

              【讨论】:

                【解决方案12】:

                codeigniter 中没有预定义的方法可以一次上传多个文件,但是您可以将文件以数组的形式发送并逐个上传

                这里是参考:这是在 codeigniter 3.0.1 中上传多个文件的最佳选择,预览 https://codeaskbuzz.com/how-to-upload-multiple-file-in-codeigniter-framework/

                【讨论】:

                  【解决方案13】:

                  所以我改变的是每次都加载上传库

                                  $config = array();
                                  $config['upload_path'] = $filePath;
                                  $config['allowed_types'] = 'gif|jpg|png';
                                  $config['max_size']      = '0';
                                  $config['overwrite']     = FALSE;
                  
                                  $files = $_FILES;
                                  $count = count($_FILES['nameUpload']['name']);
                  
                  
                                  for($i=0; $i<$count; $i++)
                                  {
                                      $this->load->library('upload', $config);
                  
                                      $_FILES['nameUpload']['name']= $files['nameUpload']['name'][$i];
                                      $_FILES['nameUpload']['type']= $files['nameUpload']['type'][$i];
                                      $_FILES['nameUpload']['tmp_name']= $files['nameUpload']['tmp_name'][$i];
                                      $_FILES['nameUpload']['error']= $files['nameUpload']['error'][$i];
                                      $_FILES['nameUpload']['size']= $files['nameUpload']['size'][$i];
                  
                                      $this->upload->do_upload('nameUpload');
                                  }
                  

                  它对我有用。

                  【讨论】:

                    【解决方案14】:

                    对于 CodeIgniter 3

                    <form action="<?php echo base_url('index.php/TestingController/insertdata') ?>" method="POST"
                          enctype="multipart/form-data">
                        <div class="form-group">
                            <label for="">title</label>
                            <input type="text" name="title" id="title" class="form-control">
                        </div>
                        <div class="form-group">
                            <label for="">File</label>
                            <input type="file" name="files" id="files" class="form-control">
                        </div>
                        <input type="submit" value="Submit" class="btn btn-primary">
                    </form>
                    
                    
                    public function insertdatanew()
                    {
                        $this->load->library('upload');
                        $files = $_FILES;
                        $cpt = count($_FILES['filesdua']['name']);
                    
                        for ($i = 0; $i < $cpt; $i++) {
                            $_FILES['filesdua']['name'] = $files['filesdua']['name'][$i];
                            $_FILES['filesdua']['type'] = $files['filesdua']['type'][$i];
                            $_FILES['filesdua']['tmp_name'] = $files['filesdua']['tmp_name'][$i];
                            $_FILES['filesdua']['error'] = $files['filesdua']['error'][$i];
                            $_FILES['filesdua']['size'] = $files['filesdua']['size'][$i];
                    
                            // fungsi uploud
                            $config['upload_path']          = './uploads/testing/';
                            $config['allowed_types']        = '*';
                            $config['max_size']             = 0;
                            $config['max_width']            = 0;
                            $config['max_height']           = 0;
                            $this->load->library('upload', $config);
                            $this->upload->initialize($config);
                    
                            if (!$this->upload->do_upload('filesdua')) {
                                $error = array('error' => $this->upload->display_errors());
                                var_dump($error);
                    
                                // $this->load->view('welcome_message', $error);
                            } else {
                    
                                // menambil nilai value yang di upload  
                                $data = array('upload_data' => $this->upload->data());
                                $nilai = $data['upload_data']; 
                                $filename = $nilai['file_name'];
                                var_dump($filename);
                    
                                // $this->load->view('upload_success', $data);
                            }
                        }
                        // var_dump($cpt);
                    }
                    

                    【讨论】:

                      【解决方案15】:

                      我最近正在研究它。试试这个功能:

                      /**
                       * @return array an array of your files uploaded.
                       */
                      private function _upload_files($field='userfile'){
                          $files = array();
                          foreach( $_FILES[$field] as $key => $all )
                              foreach( $all as $i => $val )
                                  $files[$i][$key] = $val;
                      
                          $files_uploaded = array();
                          for ($i=0; $i < count($files); $i++) { 
                              $_FILES[$field] = $files[$i];
                              if ($this->upload->do_upload($field))
                                  $files_uploaded[$i] = $this->upload->data($files);
                              else
                                  $files_uploaded[$i] = null;
                          }
                          return $files_uploaded;
                      }
                      

                      在你的情况下:

                      <input type="file" multiple name="images[]" size="20" />
                      

                      <input type="file" name="images[]">
                      <input type="file" name="images[]">
                      <input type="file" name="images[]">
                      

                      在控制器中:

                      public function do_upload(){
                          $config['upload_path'] = './Images/';
                          $config['allowed_types'] = 'gif|jpg|png';
                          //...
                      
                          $this->load->library('upload',$config);
                      
                          if ($_FILES['images']) {
                              $images= $this->_upload_files('images');
                              print_r($images);
                          }
                      }
                      

                      PHP 手册的一些基本参考:PHP file upload

                      【讨论】:

                        【解决方案16】:

                        保存,然后将变量 $_FILES 重新定义为您需要的任何值。 也许不是最好的解决方案,但这对我有用。

                        function do_upload()
                        {
                        
                            $this->load->library('upload');
                            $this->upload->initialize($this->set_upload_options());
                        
                            $quantFiles = count($_FILES['userfile']['name']);
                        
                        
                            for($i = 0; $i < $quantFiles ; $i++)
                            {
                                $arquivo[$i] = array
                                            (
                                                'userfile' => array 
                                                                (
                                                                    'name' => $_FILES['userfile']['name'][$i],
                                                                    'type' => $_FILES['userfile']['type'][$i],
                                                                    'tmp_name' => $_FILES['userfile']['tmp_name'][$i],
                                                                    'error' => $_FILES['userfile']['error'][$i],
                                                                    'size' => $_FILES['userfile']['size'][$i]
                                                                )
                                            );
                            }
                        
                        
                            for($i = 0; $i < $quantFiles ; $i++)
                            {
                                $_FILES = '';
                                $_FILES = $arquivo[$i];
                        
                        
                        
                                if ( ! $this->upload->do_upload())
                                {
                                    $error[$i] = array('error' => $this->upload->display_errors());
                        
                        
                                    return FALSE;
                                }
                                else
                                {
                        
                                    $data[$i] = array('upload_data' => $this->upload->data());
                        
                                    var_dump($this->upload->data());
                                }
                        
                        
                            }
                        
                        
                        
                        
                        
                            if(isset($error))
                                {
                                    $this->index($error);
                                }
                                else
                                {
                                    $this->index($data);
                                }
                        

                        }

                        建立配置的单独函数..

                        private function set_upload_options()
                        {   
                            $config['upload_path'] = './uploads/';
                            $config['allowed_types'] = 'xml|pdf';
                            $config['max_size'] = '10000';
                        
                            return $config;
                        }
                        

                        【讨论】:

                          猜你喜欢
                          • 2019-05-18
                          • 2015-01-07
                          • 1970-01-01
                          • 2015-04-28
                          • 1970-01-01
                          • 2014-09-26
                          • 2015-11-20
                          相关资源
                          最近更新 更多