String s = inputURI.getPath() + File.separator + fileName;
//if user give a url just to refer an endpoint, not a web resource we are not doing any transfer
if (fileName != null && !"".equals(fileName)) {
destURI = GfacUtils.createGsiftpURI(endpoint, s);
if (paramValue.startsWith("gsiftp")) {
ftp.uploadFile(gridftpURL, destURI, gssCred);
} else if (paramValue.startsWith("file")) {
String localFile = paramValue.substring(paramValue.indexOf(":")+1, paramValue.length());
ftp.uploadFile(destURI, gssCred, new FileInputStream(localFile));
}else if (paramValue.startsWith("http")) {
ftp.uploadFile(destURI,