0
unshareFile
To unshare a given file
With this function, you can stop sharing a file.
Syntax
unshareFile(file)
unshareFile(nid, string)
Return
void
Examples
unshareFile(myFile)
To unshare a given file.
unshareFile(Invoice)
Result: Stops the sharing of the file saved in the Invoice field.
unshareFile(record, fileName)
To unshare a file or attachment of a given record.
unshareFile(this, "Invoice-001.pdf")
Result: Stops the sharing of the Invoice-001.pdf file of the current record.
See also
shareFile
, which returns a URL of a specific file.
Reply
Content aside
Related Articles