When inserting a new document on an user initiated upload, userId is set per default within the generated document.
In our case we do not allow an optionaluserId per SimpleSchema:
userId: {
type: String,
// optional: true
}
We use addFile to add fixtures, technically there is no userId, but it would be great if we could just pass userId to addFile to stay consistent with user initiated uploads.
Thanks a lot!
When inserting a new document on an user initiated upload,
userIdis set per default within the generated document.In our case we do not allow an optional
userIdperSimpleSchema:We use
addFileto add fixtures, technically there is nouserId, but it would be great if we could just passuserIdtoaddFileto stay consistent with user initiated uploads.Thanks a lot!