Uploading tp to Qiniu file cannot be uploaded if it is big, but there is no limit.

config.php has no restrictions as follows

"UPLOAD_SITEIMG_QINIU" = > array (

)

"rootPath" = >". /",

   "saveName" => array ("uniqid", ""),
"driver" => "Qiniu",
 "driverConfig" => array (
     "secrectKey" => "1111",
     "accessKey" => "222",
      "domain" => "333",
     "bucket" => "444",

)),

when uploading

     //
    $setting=C("UPLOAD_SITEIMG_QINIU");
    $Upload = new \Think\Upload($setting);
    $info = $Upload->upload($_FILES);
      dump($_FILES["pic"]["name"]);
    dump($setting);
    dump($Upload);
    exit;
        

get

string(6) "32.gif"

array(4) {
  ["rootPath"] => string(2) "./"
  ["saveName"] => array(2) {
    [0] => string(6) "uniqid"
    [1] => string(0) ""
  }
  ["driver"] => string(5) "Qiniu"
  ["driverConfig"] => array(4) {
    ["secrectKey"] => string(40) "111"
    ["accessKey"] => string(40) "222"
    ["domain"] => string(25) "p0xjmu7mz.bkt.clouddn.com"
    ["bucket"] => string(7) "333"
  }
}
object(Think\Upload)-sharp10 (3) {
  ["config":"Think\Upload":private] => array(14) {
    ["mimes"] => array(0) {
    }
    ["maxSize"] => int(0)
    ["exts"] => array(0) {
    }
    ["autoSub"] => bool(true)
    ["subName"] => array(2) {
      [0] => string(4) "date"
      [1] => string(5) "Y-m-d"
    }
    ["rootPath"] => string(2) "./"
    ["savePath"] => string(0) ""
    ["saveName"] => array(2) {
      [0] => string(6) "uniqid"
      [1] => string(0) ""
    }
    ["saveExt"] => string(0) ""
    ["replace"] => bool(false)
    ["hash"] => bool(true)
    ["callback"] => bool(false)
    ["driver"] => string(5) "Qiniu"
    ["driverConfig"] => array(4) {
      ["secrectKey"] => string(40) "111"
      ["accessKey"] => string(40) "222"
      ["domain"] => string(25) "p0xjmu7mz.bkt.clouddn.com"
      ["bucket"] => string(7) "333"
    }
  }
  ["error":"Think\Upload":private] => string(24) ""
  ["uploader":"Think\Upload":private] => object(Think\Upload\Driver\Qiniu)-sharp11 (4) {
    ["rootPath":"Think\Upload\Driver\Qiniu":private] => string(1) "/"
    ["error":"Think\Upload\Driver\Qiniu":private] => string(0) ""
    ["config":"Think\Upload\Driver\Qiniu":private] => array(5) {
      ["secrectKey"] => string(40) "111"
      ["accessKey"] => string(40) "222"
      ["domain"] => string(25) "p0xjmu7mz.bkt.clouddn.com"
      ["bucket"] => string(7) "333"
      ["timeout"] => int(300)
    }
    ["qiniu"] => object(Think\Upload\Driver\Qiniu\QiniuStorage)-sharp12 (8) {
      ["QINIU_RSF_HOST"] => string(18) "http://rsf.qbox.me"
      ["QINIU_RS_HOST"] => string(17) "http://rs.qbox.me"
      ["QINIU_UP_HOST"] => string(22) "http://up-z2.qiniu.com"
      ["timeout"] => int(3600)
      ["sk"] => string(40) "111"
      ["ak"] => string(40) "222"
      ["domain"] => string(25) "333"
      ["bucket"] => string(7) "444"
    }
  }
}
May.22,2021

check whether php.ini limits the size of uploaded files, and check the configuration of upload_max_filesize and post_max_size


for Qiniu, it is not recommended to use php backend for transit upload.
instead, php is responsible for authorization and the client is responsible for uploading. To reduce the pressure on your own server.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b381a6-2c0f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b381a6-2c0f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?