Forum:Preload image description when uploading

Old discussion
Hello, I know the code to preload a default text when someone uses Special:Upload, it's something like: but this will preloaded even when an already existing image is being updated. Is there a way to avoid this? When someone upload a new version the link has, can be used in the if condition? For example something like  will work?

I think I found the code I wanted: If you like it, copy it.

New Issue
The code I was using: now add the default text even when updating an image, while it's supposed to not do it in that case. The code was working until my wiki was updated to v. 1.19. Here the code page.


 * Have you tried it with $.getUrlVar instead?




 * That works, thanks!