去掉读取上传文件大小

This commit is contained in:
liuyuhang 2024-07-09 16:34:14 +08:00
parent 497671c8ec
commit 86d484b26d
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class UploadController extends base
$savepath = sprintf("/uploads/%d/%s/%s", $request->admin->id, $now->format("YmdHisu"), $file->getUploadName()); $savepath = sprintf("/uploads/%d/%s/%s", $request->admin->id, $now->format("YmdHisu"), $file->getUploadName());
$item = new Uploads(); $item = new Uploads();
$item->admin_id = $request->admin->id; $item->admin_id = $request->admin->id;
$item->filesize = $file->getSize(); $item->filesize = 0;
$item->filepath = $savepath; $item->filepath = $savepath;
$item->mime = $file->getUploadMimeType(); $item->mime = $file->getUploadMimeType();
$item->create_at = $now->getTimestamp(); $item->create_at = $now->getTimestamp();