Onedrive Webdav 2024 File Management and Sharing Options

Author

Reads 880

Happy multiethnic women watching video online with smartphone on street
Credit: pexels.com, Happy multiethnic women watching video online with smartphone on street

OneDrive WebDAV 2024 offers a range of file management and sharing options that make it a powerful tool for users. With WebDAV, you can access and manage your OneDrive files directly from your computer.

You can create, edit, and delete files and folders using WebDAV, and changes are synced to the cloud in real-time. This means you can work on your files offline and have them automatically updated when you go online.

OneDrive WebDAV 2024 also supports file locking, which prevents multiple users from editing the same file simultaneously. This helps prevent file corruption and ensures that your files remain intact.

File sharing is also a breeze with OneDrive WebDAV 2024, allowing you to share files and folders with others and control their level of access.

Configuration

To configure rclone for OneDrive, you'll need to get a token from Microsoft, which you can do in your browser. rclone config will walk you through the process.

Credit: youtube.com, Automate Microsoft OneDrive via WebDAV · A no-code tool · Tutorial · Automation Workshop for Windows

You'll need to run rclone config to get started, and it will guide you through an interactive setup process. This will involve setting up a token server URL.

The token server URL is an important setting, but it's been deprecated in favor of using --server-side-across-configs instead.

To access your OneDrive account, you'll need to specify a username and password, or use a custom client ID if you've set one up. The default Client ID and Key are shared by all rclone users when performing requests.

Once you've configured rclone, you can use it to list directories in the top level of your OneDrive, list all the files in your OneDrive, or copy a local directory to an OneDrive directory called backup.

Authentication

Authentication is a crucial step in using OneDrive WebDAV. You can specify the auth server URL using the RCLONE_ONEDRIVE_AUTH_URL environment variable or the auth_url config.

To authenticate with Microsoft OneDrive, you'll need to use your email address as a username and your regular OneDrive password. However, if you've enabled two-step verification, you may need to use App Passwords instead.

You can configure the auth server URL using the auth_url config or the RCLONE_ONEDRIVE_AUTH_URL environment variable. The type of this config is string and it's not required.

Here's a quick rundown of the authentication options:

  • Config: auth_url
  • Env Var: RCLONE_ONEDRIVE_AUTH_URL
  • Type: string
  • Required: false

File Management

Credit: youtube.com, UA Microsoft Week 2024 - OneDrive: File Storage & Sharing Best Practices

File management with OneDrive WebDAV can be a bit tricky, especially when it comes to replacing or deleting existing files. It's a known issue that SharePoint may return "item not found" errors when trying to replace or delete uploaded files, mainly affecting Office files and web files.

One way to get around this is by using the --backup-dir command line argument in rclone, which moves the files to be replaced or deleted into a given backup directory instead of directly replacing or deleting them. This can be especially useful when working with sensitive or large files.

For example, you can instruct rclone to move the files into a directory named rclone-backup-dir on your backend, such as mysharepoint.

Deleting Files

Deleting files can be a bit tricky, especially when using rclone with OneDrive or SharePoint. Microsoft doesn't provide an API to permanently delete files, so you'll have to do that with one of their apps or via the OneDrive website.

Credit: youtube.com, File Management #4: Rename and Delete Folders and Files

Files you delete with rclone will end up in the trash, unless you use the --onedrive-hard-delete flag or set the RCLONE_ONEDRIVE_HARD_DELETE environment variable to true. This flag is only available for OneDrive for Business and SharePoint document libraries.

If you're trying to replace or delete existing files on SharePoint, you might encounter an "item not found" error, especially for Office files or web files. This is a known issue, and a workaround is to use the --backup-dir command line argument, which moves the files to be replaced or deleted into a given backup directory.

Root Folder

In special circumstances, you might need to access a specific folder on OneDrive without using a path traversal. This is where the root folder ID comes in handy.

You can configure the root folder ID through the config option `root_folder_id` or by setting the environment variable `RCLONE_ONEDRIVE_ROOT_FOLDER_ID`.

The root folder ID is a string value that's not required, but it can be useful in certain situations.

Here's a summary of how to set the root folder ID:

  • Config: `root_folder_id`
  • Env Var: `RCLONE_ONEDRIVE_ROOT_FOLDER_ID`
  • Type: string
  • Required: false

Fast List

Credit: youtube.com, This Simple File Management System Changed My Life!

The Fast List feature in rclone is a game-changer for managing large files on OneDrive. It uses the delta listing facilities of OneDrive to return all files in the remote very efficiently.

This is much more efficient than listing directories recursively, which can become increasingly inefficient the further away you get from the root. Microsoft recommends using delta listing for reading file information from a drive.

Enabling Fast List requires using the --onedrive-delta flag or setting delta = true in the config file. Be aware that this can cause performance degradation.

You can use the --fast-list option with rclone mount and rclone rc vfs/refresh recursive=true to quickly fill the mount with information about all the files. This is especially useful for large directories.

The API used for recursive listing only supports listing from the root of the drive, which can become inefficient the further away you get from the root. Some commands, like rclone lsf -R, will use this API by default, but you can turn it off with --disable ListR if needed.

Sync on Save

Credit: youtube.com, Best Practice to Organize Your Computer Files

Sync on Save is a feature that allows you to configure automatic syncing of your files.

You can configure sync on save in settings, which is a straightforward process that requires minimal effort.

In sync on save mode, if any error occurs, the plugin would fail silently, which means you won't receive any error notifications.

This mode is designed to prevent disruptions to your workflow, allowing you to continue working uninterrupted.

File Properties

File properties are a crucial aspect of working with OneDrive WebDAV. You can view and edit file properties in the OneDrive WebDAV interface.

OneDrive WebDAV allows you to view file properties such as file name, file size, and file type. This information is displayed in the file list view.

To edit file properties, you can right-click on the file and select "Properties" from the context menu. This will open a dialog box where you can update file attributes like permissions and file comments.

File Sizes

Credit: youtube.com, Understanding File Sizes: KBs and MBs and GBs, oh my! (2021)

File sizes are a crucial aspect of file properties, and understanding the limits can save you a lot of hassle.

The largest allowed file size is 250 GiB for both OneDrive Personal and OneDrive for Business, a limit that's been in place since January 13, 2021.

If you're working with large files, it's essential to keep this limit in mind to avoid any issues.

Path Length

Path Length is an important consideration when working with files and folders in cloud storage services like OneDrive and SharePoint Online.

The entire path, including the file name, must contain fewer than 400 characters for OneDrive, OneDrive for Business, and SharePoint Online.

If you're using rclone to encrypt file and folder names, you'll want to pay attention to this limitation because the encrypted names are typically longer than the original ones.

Number of Files

When it comes to the number of files, it's essential to know the limits of your cloud storage. OneDrive seems to be OK with at least 50,000 files in a folder.

Rclone, on the other hand, may struggle with very large directories. At 100,000 files, it can get errors listing the directory, resulting in an UnknownError.

Chunk Size

Credit: youtube.com, How to determine ideal chunk size for file writing?

Chunk size is an important property when uploading files, and it's essential to understand the rules that apply. The chunk size must be a multiple of 320k (327,680 bytes).

If you set the chunk size above this, your files will be chunked into smaller pieces. These chunks should not exceed 250M (262,144,000 bytes), or you might encounter an error.

To adjust the chunk size, you can use the config option "chunk_size" or set an environment variable named "RCLONE_ONEDRIVE_CHUNK_SIZE".

The default chunk size is 10Mi, but you can change it to suit your needs.

Metadata

Metadata is an essential aspect of file properties that can greatly impact how your files are handled.

You can control whether permissions should be read or written in metadata, which can be done quickly but isn't always desirable.

Here are the ways to control metadata permissions:

  • Config: metadata_permissions
  • Env Var: RCLONE_ONEDRIVE_METADATA_PERMISSIONS
  • Type: Bits
  • Default: off

This means you have options to manage metadata permissions, including using a configuration setting or an environment variable.

File Size/Hash Differences on SharePoint

Credit: youtube.com, Office 365 - how to show the file size and folder size in sharepoint site in office 365

File Size/Hash Differences on SharePoint can be a real headache, especially when working with Office files like .docx and .xlsx.

SharePoint silently modifies uploaded files, causing file size and hash checks to fail. This is a known issue that affects SharePoint, but not OneDrive or OneDrive for Business.

To use rclone with affected files on SharePoint, you may need to disable these checks with specific command line arguments.

Alternatively, if you have write access to the OneDrive files, you can attempt to fix the problem by opening the affected files on the web interface and having them converted in place to a format that no longer triggers the size discrepancy.

Rclone mount can fail downloading files due to the size discrepancies, resulting in an error message.

To avoid this issue, you should use the "Last Modified" datetime property to compare files, especially when copying Office files from/to SharePoint.

iOS Live Photos in .Heic Format

iOS Live Photos in .Heic Format can cause issues with rclone and OneDrive.

Credit: youtube.com, What Are HEIC Files?

The iOS OneDrive app introduced upload and storage of Live Photos in 2020.

This feature is still a work-in-progress, introducing several issues when copying, synchronising and mounting – both in rclone and in the native OneDrive client on Windows.

The root cause of the issue is the different sizes of Live Photos when viewed on the OneDrive web interface versus when downloaded.

The size of the downloaded .heic file is smaller than the size displayed in the web interface because it only contains a single frame (still photo) extracted from the Live Photo (movie) stored in OneDrive.

Rclone copy/sync operations can repeatedly recopy unmodified photos due to these size differences.

This can be worked around by adding --ignore-size to the rclone command.

However, this workaround only syncs the still-picture, not the movie clip.

Rclone check operations can also report size errors due to these size differences.

These check errors can be suppressed by adding --ignore-size to the rclone command.

File Sharing

Credit: youtube.com, OneDrive File Sharing - 2024 | @efficiency365

File Sharing is a seamless process with OneDrive WebDAV. You can access your files from anywhere, at any time, using a WebDAV client.

OneDrive allows you to share files with others by sending them a link or granting permissions directly. This feature is particularly useful for collaborative projects, where multiple team members need to access and edit files simultaneously.

With OneDrive WebDAV, you can also set permissions for shared files, including read-only or read-write access, to ensure that sensitive information remains secure.

Accessing Shared Files

If you're having trouble accessing Shared with me files, there's a workaround you can try. Unfortunately, Shared with me files aren't supported by rclone currently.

To access Shared files, start by visiting https://onedrive.live.com. This is the first step in the workaround.

Right click on an item in Shared, then click Add shortcut to My files in the context menu. This will create a shortcut that you can access with rclone.

The shortcut will appear in My files, where you can access it like a normal folder or file.

SharePoint Online

Credit: youtube.com, Microsoft SharePoint | How to Share a File with Anyone

SharePoint Online is a popular platform for file sharing, especially for Office365 Education Accounts. These accounts can be accessed using Rclone, but only a few of them, mostly Office365 Education ones, require this feature.

To use SharePoint Online with Rclone, you'll need to get your remote's URL by signing in to your OneDrive and looking at the address bar. The URL should look like this: https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/_layouts/15/onedrive.aspx.

You can then add the remote to Rclone by configuring the URL as https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents and using your account email and password for user and pass. If you have 2FA enabled, you'll need to generate an app password.

Here's an example of how your config file should look:

Some special considerations apply when using SharePoint Online with Rclone. For example, you won't be able to use the documents size or hash to compare if a file has been changed since the upload, so you'll need to use the "Last Modified" datetime property to compare your documents. This requires appending specific flags to Rclone calls, such as copy, sync, etc.

Credit: youtube.com, OneDrive - Share a password protected link

Link Password is a feature that allows you to set a password for links created by the link command in rclone.

To set the password, you can use the Config option "link_password" or the environment variable "RCLONE_ONEDRIVE_LINK_PASSWORD". This is a string value, and it's not required.

Here's a summary of the options:

  • Config: link_password
  • Env Var: RCLONE_ONEDRIVE_LINK_PASSWORD
  • Type: string
  • Required: false

Unfortunately, this feature only works with OneDrive personal paid accounts.

Frequently Asked Questions

What are the OneDrive changes for 2024?

Starting February 2024, Office 365 A1 users will have a maximum OneDrive storage limit of 100GB, with the option for IT Admins to set a lower limit

Does OneDrive support WebDAV?

Yes, OneDrive supports WebDAV, allowing seamless integration with Automation Workshop for file management. It's compatible with all Microsoft Cloud Storage plans, including OneDrive Basic and Microsoft 365.

Margaret Schoen

Writer

Margaret Schoen is a skilled writer with a passion for exploring the intersection of technology and everyday life. Her articles have been featured in various publications, covering topics such as cloud storage issues and their impact on modern productivity. With a keen eye for detail and a knack for breaking down complex concepts, Margaret's writing has resonated with readers seeking practical advice and insight.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.