Whastapp cloud api upload media error 500

Dear Team
I am try to upload media whatsapp api there have 2 method 1 is upload image (form-data) its working fine i can get upload id
but 2nd method is upload image json
if i try with this method i get error 500
i am upload from local hard disk files