Archived:Copying or moving unrecognized files with document handler (Known Issue)
Article Metadata
Compatibility
S60 3rd Edition, FP1
Article
Overview
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.
Description
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.
- image/vnd.nokia.ota-bitmap
- image/x-ota-bitmap
- application/vnd.nokia.ringing-tone
- audio/*
- image/*
- video/*
- application/vnd.rn-realmedia
- application/sdp
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.
Solution
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.

