You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Upload attachments to custom object from Ajax

Received Response
edited Dec 17, 2013 12:34PM in Integrations and APIs 14 comments



I have a custom object with file attachments activated. I checked the metadata and the methods and properties for file attachments are exposed. I have a form with all the data that must be saved for that custom object. Some of those fields are "upload documents", but for now I only have one: 

<rn:widget path="input/FileAttachmentUpload2" label_input="Upload""/>

This form has a submit form widget that extends the standard one and calls to a custom Ajax controller that saves the custom object. There I'm trying to save the attachment. If I write a file there, the custom object is saved, but if I try to save the file uploaded with the "input/FileAttachmentUpload2" widget, I'm getting an error. How can I check that the file is in the tmp folder? Am I doing something wrong?

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!