overtrue / laravel-ueditor

UEditor integration for Laravel.
390 stars 96 forks source link

catch-image 返回 ueditor::upload.UPLOAD_ERR_NO_FILE #55

Closed chenchun0629 closed 6 years ago

chenchun0629 commented 6 years ago

环境laravel5.5+ubuntu+nginx+php7.2.5

已经按照按照配置进行操作。

以下调试信息:

# Overtrue\LaravelUEditor\StorageManager.php@upload 输出 config 和 $request->all()

## config
Array
(
    [action] => catch-image
    [field_name] => source
    [max_size] => 2048000
    [allow_files] => Array
        (
            [0] => .png
            [1] => .jpg
            [2] => .jpeg
            [3] => .gif
            [4] => .bmp
        )

    [path_format] => /upload/image/{yyyy}/{mm}/{dd}/
)

##  $request->all()
Array
(
    [source] => Array
        (
            [0] => https://lccdn.phphub.org/uploads/avatars/7926_1481821627.png?imageView2/1/w/100/h/100
            [1] => https://lccdn.phphub.org/uploads/avatars/21479_1516766508.jpg?imageView2/1/w/100/h/100
            [2] => https://lccdn.phphub.org/uploads/avatars/16439_1495175693.jpeg?imageView2/1/w/100/h/100
        )

    [action] => catch-image
    [_token] => kgCrUuyct3qNBRXXUPppgAuvK6ntETvgpI8PuVtg
)
## $request->hasFile($config['field_name'])  输出 false
##  $request->file($config['field_name']) 输出为空