//composer require qiniu/php-sdk 下载sdk
public function index() { require_once 'vendor/qiniu/php-sdk/autoload.php'; $accessKey = C('ACCESSKEY'); $secretKey = C('SECRETKEY'); // 构建鉴权对象 classLoader('Auth'); $auth = new Auth($accessKey,$secretKey); // 要上传的空间 $bucket = C('BUCKET'); $token = $auth->uploadToken($bucket); $this->assign('token',$token); $this->display(); }

   <script src="__PUBLIC__/jquery-2.0.3.min.js"></script>

解决没有文件名
                // do something with key here
                return key
            }
        }
    });

</script>

https://files.cnblogs.com/files/JANCHAN/plupload.full.min.js

https://files.cnblogs.com/files/JANCHAN/qiniu.min.js

相关文章:

  • 2021-05-09
  • 2022-01-01
  • 2021-05-19
  • 2021-12-23
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
猜你喜欢
  • 2021-11-20
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-06-24
相关资源
相似解决方案