Archived:Copying or moving unrecognized files with document handler (Known Issue)
Document handler (CDocumentHandler) provides easy methods for copying or moving content to predefined directories, based on the content MIME type. If the file is not recognized as an image, sound, or video clip, a temporary directory is used as the destination, and (moved) content may eventually get deleted from the file system.
If one of the following functions from CDocumentHandler: CopyL(), MoveL(), or SilentMoveL() is used, and the copied file's MIME type is not one of the following, then the default destination is a temporary folder.
After the CDocumentHandler instance is deleted, the copied/moved files will also be deleted from the temporary folder. This may result in the unintended deletion of files especially when trying to move content.
Using the copy/move methods from CDocumentHandler is not recommended for content types other than those listed above.
PathInfo class has a method called OthersPath() that returns the paths that could be used for generic content.