Connecting via WebDAV

This tutorial covers Windows, macOS, and Linux.

We’ll show you how to mount Files.com as a drive on your computer.

Note: If you are going to be doing lots of heavy file operations, you may prefer to use a real FTP client as they can be more reliable.

Windows

Open Windows Explorer by going to Start > Computer or pressing Windows + E on your keyboard. Then click Map Network Drive. Your computer may look different depending on what version of Windows you’re using.

Input https://SUBDOMAIN.files.com/ where SUBDOMAIN is your Files.com subdomain into the folder field. Then check the “connect using different credentials” box and click Finish.

On the next screen enter your Files.com username and password then click OK.

If all was entered correctly, Windows Explorer will now show the files on your site. You can now browse and access it as any other drive, including via drag and drop.

Troubleshooting

Below are some potential issues that Windows users may encounter when connecting to Files.com via WebDAV, along with recommended steps to resolve them.

  • Unable to map drive on Windows 7
    One common issue that Windows 7 users encounter with WebDAV is the lack of proper encryption support for making secure WebDAV connections (TLS 1.2 to be specific).

    Microsoft provides instructions for enabling TLS 1.2 support in Windows here.

    We recommend using the Easy Fix download solution published there, rebooting, and then trying the drive mapping again.

  • Large uploads (taking over 30 min) are failing
    By default, Windows will not allow a WebDAV upload that takes over 30 minutes. Microsoft provides instructions for making a registry setting change to address the issue here (see Scenario 2).

  • Downloads over 50MB are failing
    Windows has a default limit of 50MB for WebDAV downloads. Microsoft provides instructions for making a registry setting change to address this issue here (See Scenario 1).

  • Some files/folders are not visible on WebDAV mapped drive
    The Windows operating system has a path length limit of 260 characters. This means that if you have a path that exceeds that limit, Windows will not display any files or folders within that path, even though the files will appear in the Files.com web interface.

    You can read more about this Windows limitation in the Microsoft article here.

    One way to work around this OS limitation is to shorten your folder names, or rearrange your folder hierarchy to reduce the length of your folder paths. You may also consider using the Files.com desktop app, which works around this OS limitation.

  • WebDAV drive is not automatically reconnected after reboot
    According to this Microsoft KB article, this behavior is by design in Windows.

    In Windows 7 Basic authentication cannot be persisted by the Credential Manager in Windows 7, this is new to the OS. The only way with Basic authentication mode to reconnect is to disconnect the drive and reconnect again, because WinHttp is not able to retrieve saved Basic and Digest credentials.

    The workaround they suggest is to use a logon script that reconnects the DAV share at user logon. Here is an example, where Z is the drive letter to map to, your_username is your username, and your_password is your password:

    net use Z: https://app.files.com /user:your_username your_password

  • WebDAV mapped drive capacity reported different than expected
    This is normal behavior for WebDAV mapped drives on Windows, as explained in this article in the Microsoft knowledge base.

    Note that you can always see your actual usage in the web interface at Settings > Usage.

  • “Windows cannot access…” error
    This error may occur when attempting to map a network drive if the Windows WebDAV client service is not currently running on your machine.

    To check this, follow these steps:

    1. Launch the Windows Services Manager (run: services.msc)
    2. Locate the WebClient service in the list of services, and verify that its status is listed as “running”. If not, double-click on the service, and then click the Start button under Service status.
    3. To ensure that the service is started automatically on boot, you can also change the Startup type to “Automatic”.
    4. Finally, click OK and then close the Services Manager window.

    Then try the drive mapping again after ensuring the service is running.

  • Unable to map WebDAV drive on Windows Server
    If you are using a Windows Server operating system like Windows Server 2008 or later, you need to install the Desktop Experience feature to enable support for WebDAV drive mapping.

    You can find the instructions from Microsoft here. Once this is installed, you should be able to map the drive following our Windows tutorial.

macOS

We’re going to show you how to open Files.com directly in Finder on your Mac using WebDAV.

If you are going to be doing lots of heavy file operations, you may prefer to use a real FTP client, as they can be more reliable.

Important Notice For Using WebDAV with macOS

There are several gotchas when using WebDAV with macOS and Finder. Due to the way Finder operates aggressively with WebDAV, there are a few recommendations that we highly recommend. If you choose not to follow these performance optimization suggestions, you may get unexpected results.

  1. Disable .DS_Store over network connections. You can learn how to do this here.
  2. Disable icon previews. You can learn how to do this here.
  3. Disable 'Allow uploads to overwrite existing files with the same name?' on the configuration page of your Files.com site.

Open Finder and and choose Go > Connect to Server, or press ⌘ + K. In the Connect to Server dialog box, enter https://SUBDOMAIN.files.com/ where SUBDOMAIN is your Files.com subdomain in the Server Address box and then click Connect.

Make sure you select Registered User on the prompt. When prompted for your username and password, enter your Files.com credentials. You can select the option to store your login information in your keychain for easy access.

If all was entered correctly, a new Finder window will open showing the files on your site.

You can now browse and access it as any other drive.

Linux (GNOME)

To connect the Nautilus file manager to your Files.com site with WebDAV, simply use the path davs://SUBDOMAIN.files.com, replacing SUBDOMAIN with your Files.com subdomain.

Linux (KDE)

To connect the Dolphin file manager to your Files.com site with WebDAV, simply use the path webdavs://SUBDOMAIN.files.com, replacing SUBDOMAIN with your Files.com subdomain.

Linux (Command Line)

Follow these steps to create a WebDAV mount from the Linux command line:

1) Install the davfs2 WebDAV filesystem driver if not already installed.

Debian/Ubuntu

sudo apt-get install davfs2

CentOS/RHEL/Fedora

sudo yum install davfs2

2) Add yourself to the davfs2 group (afterward, you will need to log out and back in for this to take effect):

sudo usermod -aG davfs2 <username>

3) Create a files.com directory in your home directory for the mount point, and .davfs2 directory for your personal configuration file:

mkdir ~/files.com
mkdir ~/.davfs2

4) Copy /etc/davfs2/secrets to ~/.davfs2, set yourself as the owner, and make the permissions read-write owner only:

sudo cp /etc/davfs2/secrets ~/.davfs2/secrets
sudo chown <username>:<username>  ~/.davfs2/secrets
sudo chmod 600 ~/.davfs2/secrets

5) Add your Files.com site URL and login credentials to the end of the secrets file:

https://SUBDOMAIN.files.com <username> <password>

6) Add the mount information to /etc/fstab:

https://SUBDOMAIN.files.com /home/<username>/files.com davfs rw,user,noauto 0 0

7) You should now be able to mount your Files.com site with WebDAV using this command:

mount ~/files.com