Auto-upload is uploading duplicate photos after I got new phone

I had auto-upload enabled for my old iphone and everything synced correctly. I just got a new iphone and had all of my pictures transfered from the old phone to the new phone. Now when I go to set up auto-upload for my new phone, it is uploading all of the images again even though they are all already uploaded from my old phone. Any way to prevent this?

It appears when turning the “upload entire camera roll” off and then on again from the original phone, the same thing happens. Nextcloud tries to upload all of the files that have already been uploaded again.

Another EDIT:
It looks like the duplicate files were not actually uploaded, they were just queued in the transfer but skipped. Closing this issue as resolved.