I am trying to display the images in the media library inside the elementor view.
When I try to upload files programmatically, the file is uploaded but not displayed in the Media Library grid view. Until I refreshed the page.
On the other other hand, if I upload images using Media Library upload button, it gets automatically displayed in the grid view.
Why is that. ?