DMSDocument::replaceDocument
Takes a File object or a String (path to a file) and copies it into the DMS, replacing the original document file but keeping the rest of the document unchanged.
Signature
public function replaceDocument(File|string
$file )
Parameters
$file
— object- path to a file to store
Returns
- DMSDocument
- object that we replaced the file in