You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move files app to use WebDAV instead of custom PHP endpoints #12353
Currently we have at least two endpoints to manage files:
WebDAV
Private PHP ajax endpoints in the files app
To reduce code duplication and endpoint duplication one idea would be to make the files app use the WebDAV endpoint instead, just like any other external client does (mobile, desktop, etc)
We need to make sure that every custom property (ex: "icon", "isPreviewAvailabe", etc) is available on the WebDAV endpoint to keep the existing functionality working.
There might be other challenges like batch file deletion, where the JS code would need to send multiple "DELETE" calls, one for every selected file, instead of deleting a series of files in one call.
We will see speed issues. But we can fix these, and each fix will also improve the clients. which in turn will improve the overall ownCloud experience. From my POV this is a good step towards a more unified development of all parts.
About the specific batch problem you mentioned: I highly suggest that we add batch deletes and maybe other operations like move because that is a problem for the clients as well.
Got some ideas: currently the JS code for the file list is still quite ugly and it would bring some advantages to move the file handling logic to a separate class/API anyway.
Introducing the JS Files API: #13905
It could be written to be based directly off WebDAV and can be injected and used by JS apps too to access files. This way we not only gain the advantage of having the files web UI based on WebDAV, but also any app that needs access/manipulate files from JS.
So the first step would be to first design and write that new JS Files API class, which itself can use/wrap a WebDAV library.
Then the files web UI can be ported progressively to use that JS Files API.
Activity
dragotin commentedon Nov 21, 2014
Yes.
We will see speed issues. But we can fix these, and each fix will also improve the clients. which in turn will improve the overall ownCloud experience. From my POV this is a good step towards a more unified development of all parts.
About the specific batch problem you mentioned: I highly suggest that we add batch deletes and maybe other operations like move because that is a problem for the clients as well.
PVince81 commentedon Nov 21, 2014
@icewind1991 also raised a concern that IE8 might not support verbs like PROPFIND, etc. But we can have some tests about that.
PVince81 commentedon Nov 21, 2014
On a side-note I'd also love if ownCloud itself could get rid of internal ajax APIs and only rely on OCS public APIs (some kind of dogfooding).
PVince81 commentedon Feb 4, 2015
The public page can then use the "public.php/webdav" endpoint for public link file operations (#6635)
PVince81 commentedon Feb 4, 2015
Note that moving to WebDAV will also have the advantage to automatically use part files internally and solve concurrency issues like #13755
PVince81 commentedon Feb 4, 2015
Changing the whole file UI is a big task, so this should rather be done step by step:
PVince81 commentedon Feb 4, 2015
PVince81 commentedon Feb 4, 2015
@DeepDiver1975 I'm not sure whether there's time for this in 8.1, but as said above we can split it in smaller pieces.
PVince81 commentedon Feb 4, 2015
PVince81 commentedon Feb 4, 2015
Got some ideas: currently the JS code for the file list is still quite ugly and it would bring some advantages to move the file handling logic to a separate class/API anyway.
Introducing the JS Files API: #13905
It could be written to be based directly off WebDAV and can be injected and used by JS apps too to access files. This way we not only gain the advantage of having the files web UI based on WebDAV, but also any app that needs access/manipulate files from JS.
So the first step would be to first design and write that new JS Files API class, which itself can use/wrap a WebDAV library.
Then the files web UI can be ported progressively to use that JS Files API.
PVince81 commentedon Feb 10, 2015
Anoter challenge:
31 remaining items
MTRichards commentedon Sep 18, 2015
Yep, thank you.
PVince81 commentedon Nov 23, 2015
Not fully done, upload is still t obe done.
PVince81 commentedon Nov 23, 2015
also downloading as zip, etc. Keeping this ticket open.
dragotin commentedon Nov 23, 2015
yeah!!! ☀️
PVince81 commentedon Nov 23, 2015
but no upload or download as zip yet (not wanting to darken the mood)
karlitschek commentedon Nov 23, 2015
Awesome :-)
Gret work @PVince81 and everyone!
lock commentedon Aug 7, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.