fix bug always return true even if file entry does not exist
check for file entry, if not spawn upload process