Closed (fixed)
Project:
Services
Version:
7.x-3.10
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2015 at 00:45 UTC
Updated:
18 May 2015 at 21:04 UTC
Jump to comment: Most recent
Comments
Comment #1
natefollmer commentedAttaching files are a two step process. The link you provided is step 1, now you need to do step 2.
When attaching files to nodes, you give the node the fid (file id) NOT the path. If you want to see exactly what your JSON needs to look like, the easiest way I have found is make a node on the site as you normally would, then call [PathToYourServicesServer]/node/[nid].json and this will return what your JSON should look like.
A quick example might look like this:
That's it! So to summarize, follow the tutorial in your link, then take your response, get the fid, and use that to pass the fid to your node to attach the file.
Comment #2
kylebrowning commentedComment #4
chandu7929 commentedHi,
Is there way to attached uploaded image to comment field?
Thanks,
Chandan