Uploading code with file

I think there is a bug in uploading code as file. When I upload a code with file it doesn’t change when I upload again the same file with different code.