[Kimchi-devel] [PATCH 2/4] Download Remote Image UI: Add Corresponding Window
Crístian Viana
vianac at linux.vnet.ibm.com
Thu Sep 11 14:00:34 UTC 2014
On 10-09-2014 09:02, Hongliang Wang wrote:
> + var fetchRemoteFile = function() {
> + var volumeURL = $('#volume-remote-url').val();
> + var volumeName = volumeURL.split(/(\\|\/)/g).pop();
> + kimchi.downloadVolumeToSP({
> + sp: kimchi.selectedSP,
> + name: volumeName,
> + url: volumeURL
If you want to, you may omit the parameter 'name' when sending the POST
request to create a storage volume because the backend uses a default
value (the string after the last '/') when that parameter is not found.
More information about the Kimchi-devel
mailing list