post file error via restapi

Hello
Could you help us to resolve this issue
when we are trying to upload file via restapi using the code below,
but we having an error 500 :
*******************************************

Error :

InvalidArgumentException : Field _links is unknown. dans DrupalCoreEntityContentEntityBase->getTranslatedField() (ligne 471 de /home/ocellesd8/www/drupal8/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

*******************************************

Post url : http://domainename/entity/file?_format=hal_json

*******************************************

Post json :

{
“_links”: { “type”: {“href”: “http://domainename/rest/type/file/image“}},
“filename”: [{“value”: “toto.jpeg”}],
“filemime”: [{“value”: “image/jpeg”}],
“filesize”: [{“value”: “488”}],
“type”: [{“target_id”: “image”}],
“data”: [{
“value”: “iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAkUExURUxpcSOq4SOq4SOq4SOq4SOq4SOq4SOq4SOq4SOq4SOq4SOq4U0m8UcAAAAMdFJOUwD/EvAm2qhTPMRrkl4CMYAAAAE1SURBVCjPXZG/S8NQEMePR7Ehnb48khC7BEFFnYJD6/aWOLilVBy6WBVc648/oCii1KlFKDrFwV2tqH+edy9Rk7zh8e7Dfe++944oP5dUO59RDQyPqrFK/WqKCzxUwA30oJyymervlVK8PsVBOd85hh6pyflfhwXg024cjguwBqCjhsCsSOAn+k4MBGpUWAB6Tb6W1VxAgv+MfcPgWUBgazjxoYwlQLrsmBa6MhbH3hep2yu6QJuowWL9Yfs1U4QRSbWOjRts0DMCdEbqjl8s1kYkPqmX7YGRfgy4aJe2IB+0wZJI2s7ojEGbWtJejL1aL55h+wGDVWTWix47+cAug6kAycjs+LkkjFzku0h6dC3D01KxCmdOLrt7pyQ0+Z/tRXT/eEr0dvL7y6zkrbhPtYVPrOAHKZQ53IyepQMAAAAASUVORK5CYII=”
}]
}

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed