return nil instead of erroring for invalid uploads