The "upload file" link in the navbar is only shown if the user has never run an import, or if he has run an import that finished with an error.

Also the link works (i.e. opens the popup) anywhere in the app. This has required that the popup html be present in all pages (hidden, of course).