返回异常
FileNotFoundException in Filesystem.php line 385:
File not found at path:
in Filesystem.php line 385
at Filesystem->assertPresent('') in Filesystem.php line 234
at Filesystem->delete(null) in FilesystemAdapter.php line 155
at FilesystemAdapter->delete(null) in File.php line 179
at File->destroy() in File.php line 89
at File->uploadAndDeleteOriginal(object(UploadedFile)) in Image.php line 33
at Image->prepare(object(UploadedFile)) in Form.php line 485
at Form->prepareInsert(array('name' => '', 'source_action' => '0', '_token' => 'Xg1So1nIFBrXJMnMmqgt3FCHhSI5Pss2rQb6ICOd', 'source' => object(UploadedFile))) in Form.php line 256
at Form->Encore\Admin{closure}(object(MySqlConnection)) in Connection.php line 476
at Connection->transaction(object(Closure))
上传后在文件保存目录有生成文件,跟踪代码时发现 Form/Field/Image::uploadAndDeleteOriginal 最后调用 destroy 时local驱动的delete方法获取不到this->original,上传失败!
laravel:5.1 laravel-admin 1.1.x-dev
不知道是不是配置里遗漏了什么,帮忙解答一下。。。
filesystem.php `'disks' => [
]`
admin.php
` 'upload' => [
],`
返回异常 FileNotFoundException in Filesystem.php line 385: File not found at path: in Filesystem.php line 385 at Filesystem->assertPresent('') in Filesystem.php line 234 at Filesystem->delete(null) in FilesystemAdapter.php line 155 at FilesystemAdapter->delete(null) in File.php line 179 at File->destroy() in File.php line 89 at File->uploadAndDeleteOriginal(object(UploadedFile)) in Image.php line 33 at Image->prepare(object(UploadedFile)) in Form.php line 485 at Form->prepareInsert(array('name' => '', 'source_action' => '0', '_token' => 'Xg1So1nIFBrXJMnMmqgt3FCHhSI5Pss2rQb6ICOd', 'source' => object(UploadedFile))) in Form.php line 256 at Form->Encore\Admin{closure}(object(MySqlConnection)) in Connection.php line 476 at Connection->transaction(object(Closure))