Hi there,
I suppose you might have created a trigger that decrypts the files automatically. The server's decryption key can only decrypt files encrypted by its corresponding public key.
Make sure that no such triggers are executed and I suppose that sorts your query.
--If the reply is helpful, please Upvote and Accept it as an answer--