Gallery:模块:webdav:用户(user)
Manually connect with WebDAV URL
The following are examples of WebDAV clients which work with Gallery, with a few corner cases, depending on the client and your server:
Windows Web Folders
- In My Network Places, click Add a network place
- When the wizard asks Where do you want to create this network place?, click Choose another network location
- When the wizard asks What is the address of this network place?, enter the WebDAV URL of the album in Gallery. The WebDAV URL for each album in Gallery is displayed in the WebDAV URL block. The Gallery administrator must activate the WebDAV URL block for it to appear. The WebDAV URL is by default: http://example.com/gallery2/w/album/path.
- When the wizard asks, What do you want to name this place?, enter anything you like.
Mac OS X WebDAVFS
- In the Finder, from the Go menu, select Connect to Server...
- Enter the WebDAV URL of the album in Gallery. The WebDAV URL for each album in Gallery is displayed in the WebDAV URL block. The Gallery administrator must activate the WebDAV URL block for it to appear. The WebDAV URL is by default: http://example.com/gallery2/w/album/path.
img:92224img:92226img:92231img:92228
Mac OS X fails to connect without a correct OPTIONS response. mod_php will pass OPTIONS requests to Gallery, so the response includes DAV headers, however Apache won't pass OPTIONS requests to scripts, so if you use php-cgi, you must use mod_rewrite and mod_headers to set these headers instead.
GNOME
- In the panel, from the Places menu, select Connect to Server...
- In the Service type: menu, choose WebDAV (HTTP)
- In the Server: field, enter the WebDAV URL of the album in Gallery without leading http://. The WebDAV URL is by default: example.com/gallery2/w/album/path
fusedav
Needs documentation and screen shots.
Automatically connect with item link
Internet Explorer
WebDAV, ActiveX, ASP.NET and related links:
About Web Folder Behaviors http://msdn2.microsoft.com/en-us/library/ms531432.aspx
ActiveX : The Official Microsoft ASP.NET Site http://silverlight.net/Default.aspx
Introducing Silverlight http://www.asp.net/silverlight/
Download Silverlight http://www.microsoft.com/silverlight/install.aspx
Info on Working with Distributed Authoring and Versioning (DAV) and Web Folders http://support.microsoft.com/kb/q221600/
Konqueror
The item link will connect to WebDAV with the webdav:// URL scheme.
Other
In other browsers, the item link will download a davmount resource: RFC 4709
For now, to open davmount resources on Windows, you must run the script at the end of RFC 4709. This only applies if you're not using Internet Explorer, e.g. Firefox. Media:Davmount.zip
Known Issues
- The Windows WebDAV client doesn't support non-default ports: http://www.zorched.net/2006/03/01/more-webdav-tips-tricks-and-bugs/
- Julian Reschke maintains an excellent list of Windows WebDAV client bugs, indexed by client version and Windows product: http://www.greenbytes.de/tech/webdav/webdav-redirector-list.html
- To turn off OSX's creation of .ds_store files in your gallery while mounted, use this command in terminal:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Troubleshooting
I'm trying to test the Gallery WebDAV connection on as many clients and servers as possible. If you encounter problems connecting to Gallery with WebDAV, please include in a bug report a transcript of the WebDAV HTTP conversation. You can use tcpflow or Wireshark to get a transcript: http://www.circlemud.org/~jelson/software/tcpflow/ http://packages.debian.org/tcpflow http://www.wireshark.org/ http://packages.debian.org/wireshark
tcpflow
tcpflow is a command line tool. You can run it on either your client or your server. It may require root permission to open your network interface. The following will display a transcript of the HTTP conversation with example.com:
sudo tcp -C port http and host example.com
Documentation
The Plone project has excellent WebDAV documentation: http://plone.org/documentation/how-to/webdav