-
Type: Question
-
Resolution: Community Answered
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
We have the requirement - copy files in grid fs bucket. currently we are download and re upload the files.
I want to create a copy/duplicate of the file in the database, and only change metadata. However, I don't want to create just a copy/duplicate in fs.files pointing to the original chunks but I also need to duplicate the chunks since the files are in one-to-one correspondence with other data, and upon deleting that other data, the corresponding file also need to be deleted, hence, the need for duplicating the file chunks as well.
Is there any nice way like copyto in gridFS which take all my needs?