fix fileupload bug and add  import agree courses