## php – Only the first image uploads

Question

I am trying to upload these two images to my site:
https://listing-images.homejunction.com/maris/82721628/photo_1.jpg
https://listing-images.homejunction.com/maris/82721628/photo_2.jpg

But only the first image works. I am using the following code, where $post_id is the post to attach these images to: media_sideload_image( 'https://listing-images.homejunction.com/maris/82721628/photo_1.jpg',$post_id, '','id' );