PRB: Attachment Long File Name Truncates to 8.3 Format (260294)
The information in this article applies to:
- Collaboration Data Objects (CDO) 1.2
- Collaboration Data Objects (CDO) 1.21
This article was previously published under Q260294 SYMPTOMS
The Name property of a message attachment can truncate to an 8.3 format, or an eight-character file name plus a three-character extension.
For example, a file attachment originally named "Longfilename.txt" may have its name truncated to "LONGFI~1.txt".
CAUSE
This truncation occurs when you programmatically retrieve message attachment properties with the Collaboration Data Objects (CDO) 1.2x library. Backward compatibility with platforms does not recognize long file names, and as a result truncates the Name property of the attachment to the 8.3 format.
This behavior is by design.
RESOLUTION
To resolve this behavior, obtain the original file name of the attachment (long or otherwise) using the PR_ATTACH_LONG_FILENAME MAPI property as follows.
objAttachment.Fields(cdoPR_ATTACH_LONG_FILENAME)
where objAttachment is a valid attachment object that instantiates with the CDO 1.2x library.
Modification Type: | Minor | Last Reviewed: | 3/4/2004 |
---|
Keywords: | kbMsg kbprb KB260294 |
---|
|