Closed jim-bo closed 10 years ago
Hello eljimbo, files and file storage (GridFS) will be possibly supported in eve 0.3 - but AFAIK we are still waiting for this release.
I already tried to implement some proof of concept how to do it with mongoengine's FileField
and ImageField
, but it didnt go well... I think there is an incompatibility between eve's MediaStorage
class and mongoengine's FileField/ImageField
; in the MediaStorage class in get()
i got only ID of the file, but I do not know what is the resource name --> mongoengine document class, so I cant do anything..
If we give up with going through mongoengine's layer, we are definitely able to implement it, but without mongoengine's hooks :( Maybe we can go with some pull request to eve to change the MediaStorage interface...
What do you think?
Cheers, Stan
Hello @jim-bo ,
eve-mongoengine 0.0.3 now supports FileField
. Still, there exists a feature described in previous post, but it should work anyway.
Hi Stanislav, I saw that release after my previous post and figured it would work its way in. Thanks! James
On Fri, Feb 21, 2014 at 6:44 AM, Stanislav Heller notifications@github.comwrote:
Hello @jim-bo https://github.com/jim-bo , eve-mongoengine 0.0.3 now supports FileField. Still, there exists a feature described in previous post, but it should work anyway.
Reply to this email directly or view it on GitHubhttps://github.com/hellerstanislav/eve-mongoengine/issues/2#issuecomment-35723888 .
Hello, I was wondering what the issue was with supporting the FileField? Is it on the Eve side, or is there some other issue?
I'd love to help solve this.
Thanks, James