Open jcheroske opened 8 years ago
Typically you just add them under the metadata
subdocument. File-collection drops them (nonstandard attributes) to maintain compliance with the gridFS spec, and since anything can exist under metadata
it's not really much of a limitation.
I'm trying to save a FileCollection document with additional fields, such as foreign keys, but the fields are silently ignored upon insert. I can set certain fields, such as 'contentType' to whatever I want, but other fields that are outside the gridFS schema don't work. Is what I'm trying to do even possible? How do I enable my own custom fields in the FileCollection?
Thanks!