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

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

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

        return
