I am new to mongodb and read about the GridFS for storing Files but when i am storing Files in GridFS, I am facing two problems
1) When I am writing a file into GridFS using C Driver, havinge same filename as a file stored earlier, the first file is going to be overwritten. So I am wondering that Is it actually true that the same filename can only exist once in the database or am I doing something wrong? If it is true then how can i write both files in the database system?
2) When I am writing back the files from the database to the disk, the file is corrupted. I read on the net that C Driver has some bugs related to this issue. So is there anyone who can tell me whether that bug is fixed or not?