Fix upload modal formatting
properly initialize dialog for new selection
working download link, external url, target guessing