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.