账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    blueimp jquery file upload如何将范例UploadHandeler.php上传的路径写对在laravel
    68
    0

    https://blueimp.github.io/jQu...
    Basic Plus Ui的demo
    我想要给他上传到
    public/pictures 资料夹

    范例这里要怎样改?

    UploadHandeler.php

    public function __construct($options = null, $initialize = true,
    $error_messages = null) {

        $this->response = array();
        $this->options = array(
            'script_url' => $this->get_full_url().'/'.$this->basename($this->get_server_var('SCRIPT_NAME')),
            'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/files/',
            'upload_url' => $this->get_full_url().'/files/',

    请问这里指的'script_url' 是什么?

    还有我改了很多次不晓得要如何图片上传改到
    public/pictures/ 内

           'script_url' => $this->get_full_url().'/'.$this->basename($this->get_server_var('SCRIPT_NAME')),
            'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/pictures/',
            'upload_url' => $this->get_full_url().'/pictures/',

    这样子还是没有任何档案会上传成功?
    请问这里是要怎么写?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 余生浅末 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部