Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:Copying or moving unrecognized files with document handler (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (21 Jun 2012)


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.

  • image/
  • image/x-ota-bitmap
  • application/
  • 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.


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.

This page was last modified on 21 June 2012, at 05:53.
51 page views in the last 30 days.