Figured it out
I finally figured this out if anyone is interested. After looking at the code for the upload for hours, I figured out when I changed the overwrite command to Rename existing file the extension finally worked. When you choose the overwrite command it places a 0 in the code where you choose which file to upload. When you use any option besides overwrite it chooses the 2, 3, 4 options and it works nicely.