fix twice drag issue and check uploads directory when node starts