Create and modify a file extension

Hi all,
Is it possible to create and modify a file with a custom extension.

File Uploaded: "HelloWorld.pdf"
Custom File: "HelloWorld.cto"

For each file that is uploaded in Appian, we also need to create a file with custom extension i.e., cto, ndo, pke, etc.,

The legacy service expects custom file which contains the metadata of the uploaded file.

Once both are available, they would be uploaded to the document repository.

Any suggestions would be helpful.

 Discussion posts and replies are publicly visible