SECURITY: Do checks on all upload types

Also, verify file before stashing it

Based on change Ib2474cb778d53959a4f479e53d0392f916b18d83

Change-Id: I2b230af2f23c4303acdb695468608df19a88d16d