Added url uploading.

Also fixed small firefox bug for some versions of firefox.