Prevent get link if file was not selected.