file upload fix with null values