             file: progressInfo.rawFiles
             fileFormDataName: 'file'  # The form field name
             headers: {
-              'X-CSRFToken': $cookies.csrftoken
+              'X-CSRFToken': $cookies.get('csrftoken')
               'Content-Type': 'multipart/form-data'
             }
           }).progress((evt) ->

        $scope.addFileInfoList = (options) ->
          fileInfoList = cradminBulkfileupload.createFileInfoList(options)
          $scope.fileInfoLists.push(fileInfoList)
          return fileInfoList

        return

              url: $scope.uploadController.getUploadUrl()
              method: 'DELETE'
              headers:
                'X-CSRFToken': $cookies.get('csrftoken')
              data:
                collectionid: $scope.uploadController.getCollectionId()
                temporaryfileid: fileInfo.temporaryfileid
