changed upload to handle ncf