如何使用VueJS将图像发送到PHP API?

我正在尝试使用Vue将图像发送到PHP API,但老实说我不知道​​如何, 我有我的表格

<form>
  <div class="input-group">
     <label for="photo">Photo</label>
     <input type="file" @change="getImage" name='photo' id='photo'>
  </div>
 </form>

and the getImage() like this

getImage(event){
  let formData = new formData();
  formData.append('photo',event.target.files[0]);
  this.$http.post('http://myapi/users',formData);
}

我不知道如何在我的PHP API中访问此图像并将其上传到数据库。 我尝试访问$ _FILES,但这是一个空数组