Stop Creating $File

I have two databases on my client.I have the same form in both databases.

The form contains one rich text field.

I create a document and in the field, I executed a File… Import… and import a .JPG file in the rich text field.

I save the file.

In one database the jpg is stored in the richtext field. In the other database the jpg is stored in $File as an attachment.

How can I keep the jpg in the richtext field and prohibit storing in $File???

I want to use the richtext item in another script. It works in one database and fails in the second where the image is store in $File.

Thank for your help.

Neil Rancour.