Commit 2dad2904 authored by Ivan Tyagov's avatar Ivan Tyagov

Make it possible to append to BigFile from restricted environment.

parent 21089b22
......@@ -389,6 +389,12 @@ class BigFile(File):
RESPONSE.setStatus(204)
return RESPONSE
security.declareProtected(Permissions.ModifyPortalContent,'appendData')
def appendData(self, data_chunk, content_type=None):
"""
append data chunk to the end of the file, available in restricted environment.
"""
self._appendData(data_chunk, content_type)
def _appendData(self, data_chunk, content_type=None):
"""append data chunk to the end of the file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment