Thumbnail link is broken when file is initially added, and only works after the model has been saved.

The javascript for selecting a file sets the thumbnail link to the relative path of the file instead of the full url. Since the input element does actually need the relative path, we must pass both the relative path and the url to the SubmitFile function.