Upload a file to the Media Library

Current version: 9.1

In the Media Library, there are three different methods to upload your media files:

  • Upload file – use this option to upload a single file.

  • Upload files (advanced) – use this option to upload multiple files or to apply upload options. For example, you can upload a Zip archive or overwrite duplicates.

  • Drag & Drop – use this option to upload a single file or multiple files by dragging them from Windows Explorer to the Sitecore Media Library.

    Note

    The drag-and-drop functionality is currently only supported in Internet Explorer 7 or later. If you use a different browser such as Mozilla Firefox, you must use the Upload file and Upload files (advanced) options to upload your files to the Media Library.

Media files that you upload to the Media Library are not versionable by default. If a media file is versionable, a new version of the media item is created automatically every time you edit it. This enables you to revert back to an older version of an item after you edit the item. To make a media file versionable, you can either use the Upload files (advanced) option or set up the Drag & Drop option to make all media files versionable by default when they are uploaded by Drag & Drop.

Upload file

To upload a media file:

  1. In the Media Library, in the content tree, select the folder that you want to upload your media file to.

  2. In the editing pane, on the Folder tab, click Upload file.

    The content editor with a folder in the Media Library selected
  3. In the Upload file dialog box, click Browse.

  4. In the File Upload dialog box, browse and select the media file that you want to upload and click Open.

  5. In the Upload file dialog box, click Upload.

Upload files (advanced)

To upload multiple files or apply upload options:

  1. In the Media Library, in the content tree, select the folder that you want to upload your media files to.

  2. In the editing pane, on the Folder tab, click Upload files (advanced).

    The content editor with a folder in the Media Library selected
  3. In the Batch Upload dialog box, in the Select file(s) to upload here field, click Browse.

    The Batch Upload dialog box with one browse button
  4. In the File Upload dialog box, browse to an image you want to upload.

    Note

    If you are working in Internet Explorer, you can upload multiple files at once. To select multiple files, press and hold the CTRL key when you select the files.

  5. Click Open.

    The name of the selected file appears next to the Browse button, and a new Browse button appears below.

    The Batch Upload dialog box with two Browse buttons
  6. To upload additional files, click the Browse button that has no file selected, select a file and click Open.

  7. When you have added all the files you want to upload, in the Batch Upload dialog box, select the relevant options.

    Upload option

    Description

    Unpack ZIP archives

    Select this option to upload and extract a Zip archive to the Media Library.

    In the .zip file, you can include subfolders with files. The folder structure is re-created in the Media Library after the files are extracted.

    Make uploaded media items versionable

    Select this option to make the media file versionable. This creates the media file in the selected language only, and any other language version that you want you need to create manually.

    Overwrite existing media items

    Select this option to upload a file with the same name as a file that already exists in the Media Library, and want to overwrite the existing file.

    If you do not select this option, a duplicate file is created in the Media Library.

  8. Click Upload. and the uploaded images are added to the selected folder in the Media Library.

  9. When all of the images appear in the Uploaded media items section, click Close.

Note

A warning appears on an item If the Alt field is empty. To remove the warning, open the media item in the content editor and enter an alternate text in the Alt field.

Drag & Drop

If you work in Internet Explorer 7 or later, the drag-and-drop option is the quickest and easiest way to upload media files to the Media Library. You can upload single or multiple files from your computer to the Drag & Drop dialog box. This is especially useful when you want to upload many files to different locations in Sitecore or from different locations on your computer.

To drag and drop files to the Media Library:

  1. In the Media Library, select the folder that you want to upload the files to.

  2. To open the Drag & Drop dialog box, from the editing pane, on the Folder tab, click Drag & Drop.

    The Drag and Drop dialog box
  3. Open Windows Explorer and navigate to the folder where the images are stored and select the images you want to upload.

  4. Position Windows Explorer next to the Drag & Drop dialog box and drag the selected images from Windows Explorer to the Drag & Drop dialog box.

    The Drag and Drop dialog box with an image added
    Note

    If you need to upload files to or from other locations, simply navigate through the folder structure either in the Drag & Drop dialog box or in Windows Explorer. You do not have to close the dialogs and start over.

  5. When you have dragged and dropped all your media files, click Done to copy them to the Media Library.

    Note

    If the folder you copy to already contains a media items with the same name, the Copy File dialog box opens, asking you to decide how to handle the duplicate media items.

    In the editing pane, on the Folder tab, in the Media section, you can see the images that you uploaded. Each new item contains a warning.

  6. To remove the warnings, open each media item and enter the alternate text in the Alt field.

Make uploaded media files versionable by default

To make all the media files that you upload to the Drop & Drag dialog box versionable by default:

  1. Open the Sitecore.config file that is stored in the web root folder of your website: C:\Inetpub\wwwroot\<YourSitecoreWebsite>\Website\App_Config

  2. Right-click the Sitecore.config file, click Open With, and then click Notepad.

  3. Locate the following setting and change the value to True:

    <setting name="Media.UploadAsVersionableByDefault" value="false" />

  4. Save your changes.

  5. Open the Media Library.

  6. Click the Sitecore system menu The Sitecore system menu icon and then click Application Options.

  7. In the Application Options dialog box, click the Media tab, and select the Show only latest version of files option.

Do you have some feedback for us?

If you have suggestions for improving this article,