changing constants names and invalidating session during upload with creation of new one