Fix existence check for uploads