Fixed a logic bug that caused all uploads to be skipped