When cutting and pasting a transaction that has an associated file from one account to another, the associated file information is not remembered.
I have a possible fix locally and will add to a PR in due course.
Added possible fix to PR432.
This fix will be included in gnucash 3.4.