upload button stops empty upload