Ver código fonte

修改文件上传

chenxiqiang 6 anos atrás
pai
commit
3f38f2fdeb

+ 1
- 1
manage-server/app/Http/Controllers/CommonController.php Ver arquivo

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

Carregando…
Cancelar
Salvar