Fixed upload with no new file issue