You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
it seems that filefield doesn't work, i mean when i use such a field, it can't save in gridfs ?
is it normal ?
traces are :
Exception Type: AttributeError
Exception Value: 'InMemoryUploadedFile' object has no attribute 'grid_id'
/virtual-env/lib/python2.7/site-packages/mongoengine/fields.py in validate
return None
def to_python(self, value):
if value is not None:
return GridFSProxy(value)
def validate(self, value):
if value.grid_id is not None: # HERE THE ISSUE
assert isinstance(value, GridFSProxy)
assert isinstance(value.grid_id, pymongo.objectid.ObjectId)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
it seems that filefield doesn't work, i mean when i use such a field, it can't save in gridfs ?
is it normal ?
traces are :
Exception Type: AttributeError
Exception Value: 'InMemoryUploadedFile' object has no attribute 'grid_id'
/virtual-env/lib/python2.7/site-packages/mongoengine/fields.py in validate
return None
def to_python(self, value):
if value is not None:
return GridFSProxy(value)
def validate(self, value):
if value.grid_id is not None: # HERE THE ISSUE
assert isinstance(value, GridFSProxy)
assert isinstance(value.grid_id, pymongo.objectid.ObjectId)
The text was updated successfully, but these errors were encountered: