×
Namespaces

Variants
Actions

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

From Nokia Developer 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
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (21 Jun 2012)

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.

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

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×