Fix check for uploadClass

Fix check for uploadClass