Active
Project:
xml2node
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2011 at 10:31 UTC
Updated:
11 Sep 2011 at 22:43 UTC
Jump to comment: Most recent
Hello,
xml2node works fine and elegant.
But I want to add multiple files in a filefield (with unlimited files).
How does one specify that?
The furthest I came was below, but the second det2 replaces the first one, it doesn't add, so my filefield only has 1 file.
I am not an XML expert, maybe overlooked something basic?
Any suggestions how to do that?
sites/default/files/upload/det1.jpg
det1.jpg
sites/default/files/upload/det2.jpg
det2.jpg
Comments
Comment #1
Anonymous (not verified) commentedhi,
You can add the the field-element multiple times with different files:
Let me know if that works for you.
Comment #2
ecj commentedThe problem is that this ends up with only det2.jpg in the file field.
If this whole det2 (second file in the unlimited file fields) declaration is removed, then det1.jpg turns up.
So I guess that with this syntax, first det1 is inserted, then overwritten by det2.
I tried something with inserting item... item (excuse me for missing the brackets). But that doesn't work either.