Add preview mode to upload page.