hi , i’m new here , i’m using cfs:filesystem
cfs:standard-packages on upload image , everything work fine but i don’t know how to insert data to collection by myself , it’s alway insert data automatically !
example : Collection
{
"_id" : “YsWDohDkjEPZ2a6p6”, // _id here i need generate to 001
"userId": “0001” // here i want to insert new filed userId to collection
"original" : {
“name” : “100APPLE_IMG_0167.JPG”,
“updatedAt” : ISODate(“2013-01-07T14:54:13.000Z”),
“size” : 368287,
“type” : “image/jpeg”
},
“uploadedAt” : ISODate(“2015-06-04T17:39:15.964Z”),
“copies” : {
“yourFileCollection” : {
“name” : “100APPLE_IMG_0167.JPG”,
“type” : “image/jpeg”,
“size” : 368287,
“key” : “yourFileCollection-YsWDohDkjEPZ2a6p6-100APPLE_IMG_0167.JPG”,
“updatedAt” : ISODate(“2015-06-04T17:39:15.000Z”),
“createdAt” : ISODate(“2015-06-04T17:39:15.000Z”)
}
}
}
thank you for advance !