Skip to content

Instantly share code, notes, and snippets.

@partageit
Created September 11, 2014 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save partageit/625349b475bf45cffd95 to your computer and use it in GitHub Desktop.
Save partageit/625349b475bf45cffd95 to your computer and use it in GitHub Desktop.
Partage-it.com : le contrôleur d'upload pour blueimp-file-upload
'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