开发者

How to query Metadata from a WebDAV server

I am trying to create an iPhone App that will talk to a WebDAV Server. I have no idea on this.

开发者_StackOverflow中文版 Specifically in reference to:

  1. How to upload a file to the WebDAV Server
  2. How to download a file from the WebDAV server
  3. How to retrieve / Add MetaData on the WebDAV server
  4. How to enumerate directories & files on a WebDAV server


The protocol is defined in RFC 2616 (HTTP/1.1) and RFC 4918 (WebDAV):

  1. PUT
  2. GET
  3. PROPFIND/PROPPATCH
  4. PROPFIND (Depth:1)


For all basic CRUD operations, use an existing library such as :

  • https://github.com/amosavian/FileProvider
  • https://github.com/Isvvc/WebDAV-Swift

Regarding EXIF metadata, I'm not aware of any mechanism able to access these through WebDAV protocol. For the time being, I recommend you to download the file and extract its metadata. For sure, this method does not work for searching and filtering several files on the server. It is only working in case you want to show these metadata for one particular file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜