img upload, format api data.