By robertom on
Hi, sorry for my bad english.
I have a vocabulary with a file field and I would add some term for this vocabulary in batch mode.
how I could simulate upload button and "fake" managed_field?
My intent is to proceed in this "hackish" #1027068: Taxonomy CSV: Fields Support
Comments
I've solved. Conceptually
I've solved.
Conceptually I've:
used file_unmanaged_copy() for copy file to the destination
created manually a file object for new file
and after used file_save()
to see the context of this snippet see comment #9 at the #1027068: Taxonomy CSV: Fields Support