$image = $request->file('image');
获取的值是空的
前端代码是这样的
<tr class="tr_photo">
            <td class="photo_left">请上传考生照片</td>
            <td class="right_photo">
            <input type="file" name="image" id="image" class="inputfile" onChange="changepic(this)"/>
            <img src="" id="show" />
            <label for="image" class="btn_success">选择照片</label>
           </td>
</tr>
js代码是这样的
function changepic(obj){
  var newsrc = getObjectURL(obj.files[0]);
  document.getElementById("show").src = newsrc;
  }
function getObjectURL(image){
  var url = null;
  if (window.createObjectURL!=undefined) { // basic
            url = window.createObjectURL(image) ;
        } else if (window.URL!=undefined) { // mozilla(firefox)
            url = window.URL.createObjectURL(image) ;
        } else if (window.webkitURL!=undefined) { // webkit or chrome
            url = window.webkitURL.createObjectURL(image) ;
        }
        return url ;
  }