When I upload image files they have the same extension twice. And my script doesn't show it even it the path is correct.

Some scripts copy the file from the tmp dir server to the required directory, while others just move it. What happens to the files that were just copied? Do they stay there or does the server remove them?

Thanks in Advance