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:- How to upload a file to the WebDAV Server
- How to download a file from the WebDAV server
- How to retrieve / Add MetaData on the WebDAV server
- How to enumerate directories & files on a WebDAV server
The protocol is defined in RFC 2616 (HTTP/1.1) and RFC 4918 (WebDAV):
- PUT
- GET
- PROPFIND/PROPPATCH
- 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.
精彩评论