fileManager relative file path to choosed file

Permalink
Hi there

I'm currently building a small block. By clicking a link the file manager will be started with this js code in auto js:
ccm_chooseAsset = function(obj) { 
  if (senderThatOpenedAsset == 'linkImage') {
   $("#imgName").val(obj.fileName);     
   $("#imgID").val(obj.fID);
  }else if(senderThatOpenedAsset == 'linkThumb'){
    $("#tmbName").val(obj.fileName);
    $("#tmbID").val(obj.fID);
  }
}


That works great. What I now need is to know, how to get the full file path. By adding the following line to the code above, I get a path. But this is not the real file path. it returns something like this:
/index.php/download_file/-/view/13
$("#tmbFilePath").val(obj.filePath);


Is there a way with the auto.js to get the relative file path to my c5 installation?

Hope someone understands what i mean...

Thanks in advance

Steff
 
Steff replied on at Permalink Reply
Steff
Thanks to Remo

This piece of code does it
$("#filePath").val(obj.filePathDirect);