Trouble with Action REST API

I’ve been working on creating a Delphi action that handles the creation of a Delphi project. The trouble I have been having is that GPT has been having trouble uploading the file back to my server. It works sometimes and then says it has had trouble encoding the file, when it goes to upload it. The problem occurs before it even makes a network connection.

Any ideas?