fix upload check