I cann`t copy issue attachment

I want to copy an issue , I get the issue details , and create new issue successed. But when I copy the attachement with rest api " Add attachment", it got a error, like this

the rest api is:

this is my code: I use attachment.content replace “filePath” in the rest api

So, how can I copy attachments of an issue in my custom UI forge App ?

Now I resolved it, the code like this: