Make sure src field is set if file is selected