Topic by StevenO
Content
Hi All,
We have a number of integration where we need to send file attachments to external systems. To do this I am trying to write a ConnectPHP handler to connect to the SOAP GetFileData() operation using cURL. The idea is that we can then call this from a CPM or other instance. The issue I am having is that once a file gets over 2KB I get nothing returned (no error, almost like a segment fault). Files under 2KB return with no issues. I have a CPM which gets file attachment data from an incident and passes it to the handler, which I have run both as Async and otherwise, both returning the same result in reference to a larger file.
I would appreciate anyone with cURL and GetFileData() experiance having a look to see what I might be doing wrong? I suspect something with cURL?
To help others I have also attached my handler as an example (good or bad) as I see this has been a potential topic of discussion for others around how to get file attachment data in CPM.
Thanks for looking
Steve