Explorar el Código

修改文件上传

chenxiqiang hace 6 años
padre
commit
3f38f2fdeb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      manage-server/app/Http/Controllers/CommonController.php

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

@@ -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…
Cancelar
Guardar