去掉读取上传文件大小
This commit is contained in:
parent
497671c8ec
commit
86d484b26d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue