Created
September 11, 2014 12:07
-
-
Save partageit/625349b475bf45cffd95 to your computer and use it in GitHub Desktop.
Partage-it.com : le contrôleur d'upload pour blueimp-file-upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('testBlueimpApp') | |
.controller('UploaderCtrl', function ($scope, $http) { | |
var uploadScriptUrl = 'http://localhost/test-upload/index.php'; | |
$scope.options = { | |
url: uploadScriptUrl | |
}; | |
$scope.loadingFiles = true; | |
$http.get(uploadScriptUrl) | |
.then( | |
function (response) { | |
$scope.loadingFiles = false; | |
$scope.queue = response.data.files || []; | |
}, | |
function () { | |
$scope.loadingFiles = false; | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment