DEV: Fix flaky time sensitive uploads.rake specs (PR #9283)

Also fix issues in spec where certain uploads were not considered secure

GitHub