BlackLabs / play-morphia

Provide mongodb access service to play.db.Model via Morphia
Apache License 2.0
130 stars 49 forks source link

new Blob() should not save the content into gridfs #107

Closed greenlaw110 closed 11 years ago

greenlaw110 commented 11 years ago

calling to new Blob() saves the content into gridfs, which is not expected for certain senario, for example, user uploaded an image which is put into a cached Blob in the server, but later on decide not to submit, the Blob is dismissed in memory and the data associated is still persistent in the mongodb