Created
May 27, 2015 20:12
-
-
Save maciekciolek/497ec99ef7ec35ab0ead to your computer and use it in GitHub Desktop.
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
vm.upload = function (files) { | |
if (files && files.length) { | |
for (var i = 0; i < files.length; i++) { | |
var file = files[i]; | |
Upload.upload({ | |
url: 'TU MU URLA WKLEJ', | |
file: file | |
}).error(function (evt) { | |
//TU jest kupa | |
}).success(function (data, status, headers, config) { | |
//TU w data jest to co Ci Dominik wypluje | |
}); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment