ensured that blank uploads are not allowed