diff --git a/app/treema-ext.coffee b/app/treema-ext.coffee index 9112abaa6..674e6215a 100644 --- a/app/treema-ext.coffee +++ b/app/treema-ext.coffee @@ -39,6 +39,7 @@ class LiveEditingMarkup extends TreemaNode.nodeMap.ace filename: InkBlob.filename mimetype: InkBlob.mimetype path: @settings.filePath + force: true @uploadingPath = [@settings.filePath, InkBlob.filename].join('/') $.ajax('/file', { type: 'POST', data: body, success: @onFileUploaded }) @@ -147,9 +148,8 @@ class SoundFileTreema extends TreemaNode.nodeMap.string filename: InkBlob.filename mimetype: InkBlob.mimetype path: @settings.filePath + force: true - # Automatically overwrite if the same path was put in here before - body.force = true # if InkBlob.filename is @data @uploadingPath = [@settings.filePath, InkBlob.filename].join('/') $.ajax('/file', { type: 'POST', data: body, success: @onFileUploaded }) @@ -185,9 +185,8 @@ class ImageFileTreema extends TreemaNode.nodeMap.string filename: InkBlob.filename mimetype: InkBlob.mimetype path: @settings.filePath + force: true - # Automatically overwrite if the same path was put in here before - body.force = true # if InkBlob.filename is @data @uploadingPath = [@settings.filePath, InkBlob.filename].join('/') $.ajax('/file', { type: 'POST', data: body, success: @onFileUploaded })