Fixed upload validation