Golang更新MongoDB中的现有文件

I have created api which receive and save files into mongodb,My api based on golang and using mgo to work with mongodb, So mgo documentation says that the files which already exists can not be update, but in my app there is a function which receive a chunked files and should write on file. I have googled and have not found any solution, some links or articles will be helpful

I don't know where you saw that in the mgo documentation but you can absolutely update documents in Mongo using mgo, as evidenced by the mgo documentation, particularly the functions Update, UpdateId, UpdateAll, Upsert, and UpsertId.