Always create new nodes on the cloud, and prevent cache issue.
The cache issue: this caused etag mismatches when sharing a file multiple times using always_create_new_node=False. Even though we don't use this option right now, it should be easy to enable.
This commit is contained in:
parent
dbbffcc28e
commit
96616dbdff
@ -144,7 +144,9 @@ class PILLAR_OT_image_share(pillar.PillarOperatorMixin,
|
|||||||
self.share_group_id,
|
self.share_group_id,
|
||||||
'image',
|
'image',
|
||||||
filename,
|
filename,
|
||||||
extra_where={'user': self.user_id})
|
extra_where={'user': self.user_id},
|
||||||
|
always_create_new_node=True,
|
||||||
|
caching=False)
|
||||||
self.log.info('Created node %s', node['_id'])
|
self.log.info('Created node %s', node['_id'])
|
||||||
self.report({'INFO'}, 'File succesfully uploaded to the cloud!')
|
self.report({'INFO'}, 'File succesfully uploaded to the cloud!')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user