Revert "fixed end upload check"

This reverts commit 97f7a31bc316e9085c0c3a78566629545bd841cd.