(Bug 4715) Add warning before leaving page if uploads not done

(Also sneakily does the metadata)