After uploading via the API, the attachment has a value in the "temp_hash" field. This disrupts normal operation — the attachment doesn't appear in some places. When I remove the value from the temp_hash field, everything starts working.
Where does this parameter come from and how can it be removed? Why does it appear when uploading via the API?