Upload files and folders to a library
You can drag files and folders from your computer to upload them to your OneDrive library or SharePoint team site with the modern experience. You can also browse and upload your files using the classic version.Ā For information, seeĀ Differences between modern and classic experiences for lists and libraries.
Notes:Ā
-
To create and upload files and folders in a library, you must have contributor permissions to the library. If you're not sure what permissions you have, contact your SharePoint Admin. For more information, see Types of files that cannot be added to a list or library.
-
SharePointĀ has the ability to upload folders that are built into Microsoft Edge, Google Chrome, and Mozilla Firefox.
Drag files to your OneDrive or SharePoint site library
Notes:Ā
-
Drag and drop works best with the newĀ Microsoft Edge orĀ Google Chrome.Ā For other browsers, you can use theāÆUploadāÆcommand as an alternative method.Ā
-
If you donāt see the option to drag and drop files, you might need to update your copy of Office to the modern version.Ā
-
Open the OneDrive or SharePoint site library.
-
OpenĀ File Explorer.
-
Navigate to the folder with the documents that you want to upload.
-
Drag and drop the files to the SharePoint library. The library should display a highlight when you hover the file over it.
-
You should see your files appear in the Document library.
Upload a file to SharePoint or OneDrive within File Explorer
When you sync your OneDrive or a SharePoint library to your device, you can upload a file from within File Explorer:
-
In File Explorer, locate the file you want to upload.
-
Select the file, then on the toolbar, select the Cut option.
-
In File Explorer, navigate to sync'd OneDrive or SharePoint folder where you want to put the file.
-
After selecting that folder, on the toolbar, select Paste.
-
A small status icon will appear to indicate the status of the sync to OneDrive or SharePoint:
Icon
Meaning
The sync between your device and cloud storage is pending.
A blue cloud icon indicates that the file is only available online.Ā Online-only filesĀ donāt take up space on your computer. You see a cloud icon for each online-only file in File Explorer, but the file doesnāt download to your device until you open it.
You canāt open online-only files when your device isnāt connected to the Internet.Ā
An online-only file. When you open it, itĀ downloads to your device and becomes aĀ locally available file. You can open a locally available file anytime, even without Internet access.
If you need more disk space, you can change the file back to online only. Just right-click the file and select Free up space.
The file is markedĀ as Always keep on this device. These files have been downloaded to your device and take up space, but theyāre always there for you even when youāre offline.
To learn more about using OneDriveĀ and files on-demand, seeĀ Save disk space with OneDrive Files On-Demand for Windows.
Upload files from Explorer to your OneDriveĀ or SharePointĀ sites library
-
Open the OneDrive or SharePoint site library.
-
SelectĀ Upload at the top of the Documents library.
-
In the Add a document dialog box, selectĀ Choose FilesĀ to upload an individual file. Depending on the version of OneDriveĀ or SharePointĀ that you're using, you may also be able to upload multiple files by holding down either the Ctrl or Shift key and selecting more than one file.
-
When you've selected the file or files to upload, selectĀ OK.
If you are uploading large files, or many files that add up to a large total size to a library, you might get errors due to the file size limit in SharePoint or timeout errors. For more information, see Manage large lists and libraries.
When uploading files and folders, you need to be aware of path and file name length. SharePoint in Microsoft 365 and OneDrive support up to 400 characters for the total file and path length. SharePoint Server versions support up to 260 characters for the total file and path length. For more information, seeĀ Restrictions and limitations in OneDrive and SharePoint.
Site owners can set up a library to require you to check out files before you edit them (and check them in when you finish). If your library requires check out, the file is checked out to you when you first upload it. You have to check the file in before other people can edit it. For more information, see Check out, check in, or discard changes to files in a SharePoint library.
Site owners can set up a library to require approval of the content before it becomes visible to others who use the library. As the author, you can see the file listed and work with it, but nobody else can. For example, a legal department might require approval before documents become public. For more information, see Require approval of items in a site list or library.
You can add a file to replace an existing file with a revised version of a file. If the library is set up to track versions, when you add a file, it becomes the latest version, and the older file becomes part of the version history. When uploading a new version of a file, consider typing comments about what changed in this version so that you can more easily track the history of the file. For more information, see How versioning works in lists and libraries.
To learn more, see these articles:
-
For more information on creating and using libraries, see Introduction to libraries