diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 6585e1a7d79..663fb9f9bb9 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -265,6 +265,22 @@ } }, createForm: { + fileUpload: { + getURL: function(args) { + args.response.success({ + url: 'http://10.223.183.3/test-upload.php' + }); + }, + postUpload: function(args) { + // Called when upload is done to do + // verification checks; + // i.e., poll the server to verify successful upload + // + // success() will close the dialog and call standard action + // error() will keep dialog open if user wants to re-submit + args.response.success(); + } + }, title: 'label.upload.volume', fields: { name: { @@ -274,6 +290,10 @@ }, docID: 'helpUploadVolumeName' }, + templateFileUpload: { + label: 'Select a file', + isFileUpload: true + }, availabilityZone: { label: 'label.availability.zone', docID: 'helpUploadVolumeZone',