Fix file uploading
This commit is contained in:
parent
f125efa8ca
commit
575d4c5062
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue