On 09/11/2014 10:00 PM, CrÃstian Viana wrote:
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.
OK. Cool!