Hi,
The include macro gets the content of the included doc and executes it in
the current doc. If that content mentions an attachment, the attachment
will be resolved to the current doc as well, so if the file does not exist
in the current doc, it`s normal for it to not be found.
What you maybe
When our user use the wysywig editor to insert a image
And the user chooses to upload the image from computer
The system will attach the image to the current $doc
But it will insert a link [[image:x.xxx]] where z.xxx is the attached
filename.
This works fine when page is visited.