Make PrettyUpload use proper URLs and only on success.

This makes the uploaded files appear in the URLs list.