Changed check to see if uploaded file exists