Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Upload attachments to custom object from Ajax (5 Comments)

$
0
0

Topic by Lydia C

Content

Hi,

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?

Version

August 2013

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles