Check if a file is chosen before sending