diff --git a/app/scripts/controllers/client/UploadClientIdentifierDocumentController.js b/app/scripts/controllers/client/UploadClientIdentifierDocumentController.js
index fabd62df..8e7e2286 100644
--- a/app/scripts/controllers/client/UploadClientIdentifierDocumentController.js
+++ b/app/scripts/controllers/client/UploadClientIdentifierDocumentController.js
@@ -3,15 +3,11 @@
UploadClientIdentifierDocumentController: function (scope, location, routeParams, API_VERSION, Upload, $rootScope) {
scope.clientId = routeParams.clientId;
scope.resourceId = routeParams.resourceId;
- scope.onFileSelect = function ($files) {
- scope.file = $files[0];
- };
-
- scope.submit = function () {
+ scope.uploadPic = function (file) {
Upload.upload({
url: $rootScope.hostUrl + API_VERSION + '/client_identifiers/' + scope.resourceId + '/documents',
data: scope.formData,
- file: scope.file
+ file: file
}).then(function (data) {
// to fix IE not refreshing the model
if (!scope.$$phase) {
diff --git a/app/views/clients/addclientidentifierdocument.html b/app/views/clients/addclientidentifierdocument.html
index 67050666..ec7bb6a3 100644
--- a/app/views/clients/addclientidentifierdocument.html
+++ b/app/views/clients/addclientidentifierdocument.html
@@ -30,7 +30,7 @@
class="required">*
-
+
@@ -38,7 +38,7 @@
-