소스 검색

修改文件上传

chenxiqiang 6 년 전
부모
커밋
3f38f2fdeb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      manage-server/app/Http/Controllers/CommonController.php

+ 1
- 1
manage-server/app/Http/Controllers/CommonController.php 파일 보기

@@ -57,7 +57,7 @@ class CommonController extends Controller
57 57
             $photo = $_FILES['file'];
58 58
             //if ($request->hasFile('file') && $request->file('file')->isValid()) {
59 59
             if ($photo){
60
-                $photo = $request->file('file');
60
+                //$photo = $request->file('file');
61 61
                 $extension = $photo->extension();
62 62
                 $path = $photo->getRealPath();
63 63
                 //$store_result = $photo->store('photo');

Loading…
취소
저장