aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/services/FileInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/services/FileInfo.js')
-rw-r--r--apps/files/src/services/FileInfo.js29
1 files changed, 2 insertions, 27 deletions
diff --git a/apps/files/src/services/FileInfo.js b/apps/files/src/services/FileInfo.js
index c09af45f495..0b3b0040c26 100644
--- a/apps/files/src/services/FileInfo.js
+++ b/apps/files/src/services/FileInfo.js
@@ -21,6 +21,7 @@
*/
import axios from '@nextcloud/axios'
+import { davGetDefaultPropfind } from '@nextcloud/files'
/**
* @param {any} url -
@@ -29,33 +30,7 @@ export default async function(url) {
const response = await axios({
method: 'PROPFIND',
url,
- data: `<?xml version="1.0"?>
- <d:propfind xmlns:d="DAV:"
- xmlns:oc="http://owncloud.org/ns"
- xmlns:nc="http://nextcloud.org/ns"
- xmlns:ocs="http://open-collaboration-services.org/ns">
- <d:prop>
- <d:getlastmodified />
- <d:getetag />
- <d:getcontenttype />
- <d:resourcetype />
- <oc:fileid />
- <oc:permissions />
- <oc:size />
- <d:getcontentlength />
- <nc:has-preview />
- <nc:mount-type />
- <nc:is-encrypted />
- <ocs:share-permissions />
- <nc:share-attributes />
- <oc:tags />
- <oc:favorite />
- <oc:comments-unread />
- <oc:owner-id />
- <oc:owner-display-name />
- <oc:share-types />
- </d:prop>
- </d:propfind>`,
+ data: davGetDefaultPropfind(),
})
// TODO: create new parser or use cdav-lib when available