fix: 修复文档转换与预览链路中的图片、文件名和错误处理问题
This commit is contained in:
@@ -20,7 +20,7 @@ class CreateDocument extends CreateRecord
|
||||
$filePath = $data['file'];
|
||||
|
||||
$data['file_path'] = $filePath;
|
||||
$data['file_name'] = basename($filePath);
|
||||
$data['file_name'] = $data['file_name'] ?? basename($filePath);
|
||||
$data['file_size'] = Storage::disk('local')->size($filePath);
|
||||
$data['mime_type'] = Storage::disk('local')->mimeType($filePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user