fix #774

verify that there are four different files before allowing upload, fix #774