Hi everyone.

I want to create an external page that allows people to upload documents to Sugar through Soap / the API.

I know how to use set_entry with the Documents module to create records but I do not know how to send a file through this, I know there is an UploadFile function but I don't know how to use it.

Can anyone give me advice on this? I am using Documents as I have them related to my new custom module records but an alternative option is relating files with my custom module in a different way, if the above is not possible.

Thanks in advance,
Joe