This is an add-on to my previous post about “doc sizes being way off”:
I peeked the document in question (thanks Christian) and found that 24 $File fields actually exist. Adding them all together gives me th 820 MB that the doc size shows. But only 10 actual icons show in the rich text field.
And- - when I select all and do a save to disk, it finds more than 10 but hangs on one of the .txt files (at 130MB) and throws a checksum mismatch error to the screen…
Is there any way I can get to those other attachments?
Subject: RE: Attachment Not Showing in Rich Text field
Hi Stan,
Curious as to how you can associate the EmbeddedObject to a rich text field?
I know this can be done through extracting and re-inserting it into a RichTextItem, but not sure if this can be done by simply putting in the EmbeddedObject.Parent. The documentation states that this is read only.
What I have happening, is people are attaching items into a rich text lite field within a dialog box. Due to this, the association does not remain when saved.
Any assistance you can provide would be greatly appreciated.
Subject: RE: Attachment Not Showing in Rich Text field
You have two choices – either detach to the file system, remove and re-attach, or export as DXL, modify the document to put an attachment link into the rich text field and re-import. I’m sure the C API provides some means to do much the same thing as the DXL operation would. But no, you can’t simple “associate” an existing V2-style attachment with a rich text field.
Subject: RE: Attachment Not Showing in Rich Text field
I can’t think of a good reason offhand, no. It seems obvious that the attachments are being duplicated (you’ll probably find that most have an ATT* filename), but I can’t think of a node-codular reason why that’d be happening (webquerysave attachment-moving code that previously worked in R5 would do the trick, for instance).
Subject: RE: Attachment Not Showing in Rich Text field
Thanks again Stan. Just one more quick Q if I may: If an attachment is in the field (and not showing) - could it be that it is just corrupted and therefore the document is either not sure what it is or if its there?
Thanks much for all your advice Stan. It is greatly appreciated.
Subject: RE: Attachment Not Showing in Rich Text field
Not very likely – you’d be much more likely to find an icon/link that points to nothing than an attachment created in a rich text field that loses its icon that way. I’d put my money on duplication, but I wouldn’t want to say why it’s happening.