From c22776f04abc5133227b8b34171c36086f955da5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Oct 2016 16:36:10 +0200 Subject: Dont create 0 byte text files Signed-off-by: Robin Appelman --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c53fa4f3d66..a9df023614c 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2158,7 +2158,7 @@ self.filesClient.putFileContents( targetPath, - '', + ' ', { contentType: 'text/plain', overwrite: true -- cgit v1.2.3 From d5bfff6f4f85a0fcc5f28b7a39ef3b0266fd7db2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 16 Nov 2016 10:47:20 +0100 Subject: add comment for non empty text file Signed-off-by: Robin Appelman --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index a9df023614c..1294a8d0c95 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2158,7 +2158,7 @@ self.filesClient.putFileContents( targetPath, - ' ', + ' ', // dont create empty files which fails on some storage backends { contentType: 'text/plain', overwrite: true -- cgit v1.2.3