Fix file uploading

This commit is contained in:
Joseph Schorr 2015-01-07 16:50:08 -05:00
parent f125efa8ca
commit 575d4c5062

View file

@ -442,9 +442,9 @@ angular.module("core-config-setup", ['angularFileUpload'])
$scope.uploadProgress = 0;
$scope.upload = $upload.upload({
url: '/api/v1/superuser/config/file',
url: '/api/v1/superuser/config/file/' + $scope.filename,
method: 'POST',
data: { filename: $scope.filename },
data: {'_csrf_token': window.__token},
file: files[0],
}).progress(function(evt) {
$scope.uploadProgress = parseInt(100.0 * evt.loaded / evt.total);