无法在 GridFS 中保存多个文档(使用 MongoMapper/Joint)
我编写了一个 Padrino 应用程序,允许您上传文件。它使用 MongoMapper(通过 Joint)将这些文件(图像)存储在 GridFS 中。我能够毫无问题地存储一个文件。但是,当我去存储另一个文件时,它会保存,但它不在数据库中。我编写了直接使用模型类的规范(无需通过 Padrino 路线),并且得到了相同的结果。我在这里做错了什么?
相关文件要点: https://gist.github.com/1341836
I've written a Padrino application that allows you to upload files. It uses MongoMapper (via Joint) to store these files (images) in GridFS. I am able to store one file with no problems. However, when I go to store another file, it saves, but it is not in the database. I wrote specs to use the model class directly (without going through Padrino routes) and I get the same result. What am I doing wrong here?
Gist with related files: https://gist.github.com/1341836
The application: http://github.com/eturk/fhsclock
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Firefox(而不是 Chrome)中尝试过,它成功了。清除了 Chrome 中的 cookie 和缓存,它起作用了。哎哟!
I tried it in Firefox (instead of Chrome), and it worked. Cleared my cookies and cache in Chrome and it worked. Doh!