Use #select instead of #reduce in uploads detection.

The combination of #select + #values is clearer than the #reduce method.