Fix upload specs

This fixes the `upload` specs.

/cc @SamSaffron