You need to sign in to do that
Don't have an account?
makotoShishio
PHP Upload To Attachment
Hi,
I'am a complete newbie to salesforce in fact just got it today.
my question is does the PHP toolkit allow file uploads, if so
could somebody show a sample code
Thanks in advanced.
The toolkit does not handle the file upload. You take care of that using the standard tools in PHP. The toolkit will allow you to create an Attachment object and set the Name, Body and ContentType. You'll need to call base64_encode() on the uploaded data before populating the Body field.
The API documentation has the details of the Attachment object but the only code example I am aware of is in the Force.com Cookbook and is in Java.
Park
Thank you Park,
i will try you suggestions and read more into the attachment object
Hi makoto ,there is a sample that maybe help u
upload.php
uploadAttachment.php
Mikoto.Shinku
Hi,
I have also same problem of uploading files. I tried your example but it returns this error message -
SOAP-ERROR: Encoding: object hasn't 'type' property
Please help me with this issue. Or if you have any working code please provide that as well.
Thanks
Try modifying this:
to this:
Park