Fix empty inputs for multiple upload