Fixes bug where blank uploads were allowed
cosmetics