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.
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.
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.
Last updated