Fix docker file build form to read the files from its local uploader, rather than just the first one it finds

This commit is contained in:
Joseph Schorr 2015-04-22 13:22:09 -04:00
parent 8b32aeb890
commit 9f3395ada1

View file

@ -158,7 +158,7 @@ angular.module('quay').directive('dockerfileBuildForm', function () {
$scope.uploading = true;
$scope.uploading_progress = 0;
var uploader = $('#file-drop')[0];
var uploader = $element.find('#file-drop')[0];
if (uploader.files.length == 0) {
handleMissingFile();
$scope.uploading = false;