aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/sidebarpreviewtext.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/sidebarpreviewtext.js b/apps/files/js/sidebarpreviewtext.js
index a19a349701b..3053cd6945d 100644
--- a/apps/files/js/sidebarpreviewtext.js
+++ b/apps/files/js/sidebarpreviewtext.js
@@ -35,7 +35,12 @@
},
getFileContent: function (path) {
- return $.get(OC.linkToRemoteBase('files' + path));
+ return $.ajax({
+ url: OC.linkToRemoteBase('files' + path),
+ headers: {
+ 'Range': 'bytes=0-10240'
+ }
+ });
}
};