overtrue / laravel-ueditor

UEditor integration for Laravel.
390 stars 96 forks source link

上传docx后缀的文件时,有时候(偶尔)会提示:upload.ERROR_TYPE_NOT_ALLOWED #41

Closed jiker-burce closed 7 years ago

jiker-burce commented 7 years ago

我把/vendor/overtrue/laravel-ueditor/src/StorageManager.php第167行的:

!in_array('.'.$file->guessExtension(), $config['allow_files'])) {

改为:

!in_array('.'.$file->getClientOriginalExtension(), $config['allow_files'])) {

就可以了。这个跟我们之前讨论该类中getFilename()方法出现过一样的问题。 望尽快修复,谢谢!