Skip to content

Commit 8641de8

Browse files
committed
Add to storage->upload volume dialog
1 parent ad6b7b3 commit 8641de8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎ui/scripts/storage.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,22 @@
265265
}
266266
},
267267
createForm: {
268+
fileUpload: {
269+
getURL: function(args) {
270+
args.response.success({
271+
url: 'http://10.223.183.3/test-upload.php'
272+
});
273+
},
274+
postUpload: function(args) {
275+
// Called when upload is done to do
276+
// verification checks;
277+
// i.e., poll the server to verify successful upload
278+
//
279+
// success() will close the dialog and call standard action
280+
// error() will keep dialog open if user wants to re-submit
281+
args.response.success();
282+
}
283+
},
268284
title: 'label.upload.volume',
269285
fields: {
270286
name: {
@@ -274,6 +290,10 @@
274290
},
275291
docID: 'helpUploadVolumeName'
276292
},
293+
templateFileUpload: {
294+
label: 'Select a file',
295+
isFileUpload: true
296+
},
277297
availabilityZone: {
278298
label: 'label.availability.zone',
279299
docID: 'helpUploadVolumeZone',

0 commit comments

Comments
 (0)