Fix misuse of previous button to avoid file upload when required (noted by lap82)