S
Shiva Duriseati
Guest
Hi Greg, Hosted file token is URL which is constructed from server side and displayed as token. So the value (ex: {!#HOSTED_FILE.123456}) cannot be modified on the client side. The variable var hostedFile=' {!#HOSTED_FILE.' + hostedFileId + '#url}'; will simply return a string that cannot be parsed to URL. However,along with the hostedFileID ,if you were able to get fileName(tmp file name assigned by Rollbase),contentType and suggestedName(actual file name) , then using these parameters you can construct the URL as below: var hostedFileURL="http://"+"{!#HOST_NAME}"+"/storage/servlet/Image?c="+"{!#CURR_CUSTM.id}"+"&fileName="+fName+"&contentType="+cType+"&suggestedName="+sName; After modification your script should like this: PS: I tested by giving hardcoded values to above parameters. Please let me know whether you were able to get those parameters and construct the URL. Regards, Shiva
Continue reading...
Continue reading...