Managing Media in Components

SmartEdit allows you to easily manage media in your website. You can add, replace, and remove image, video, and PDF files in the components that are used to build your catalogs. You can upload files from your desktop or device to components in your website. You can upload files optimized for different inflection points, such as widescreen, desktop, tablets, and mobile phones.

When you upload a file in SmartEdit, you add the file to the media library. When you remove a file from a component, you remove it from the component but it’s still available in the media library so that the file is available for you to reuse as you want.

Uploading Files to New Components

To upload a file to a new component:
  1. Select the Basic Edit or Advanced Edit mode from the Mode Selector in the menu bar.

    The page is displayed in the selected mode.

  2. Click Add Component .

    SmartEdit displays the Add Component panel.

  3. Click on the desired component type, drag it to the target location, and drop it.

    When you drop the component type into the content slot, the Content tab of the Component Editor is displayed.

  4. In the Media area, click the Upload link in the inflection point that you want to upload an image for.

    An explorer window opens on your desktop.

  5. Navigate to the folder that contains the image that you want to upload.

  6. Select the image that you want to upload and click Open.

  7. Specify the folder that you want the media to be uploaded to.

  8. Specify the details of the image. All fields are mandatory.

    • Name: The name or a description of the image. The name isn’t displayed to your customers; it's for your use only.
    • Alt Text: An alternative text to be displayed when a customer moves the cursor over the component in your website.
    • Code: Uniquely identifies the image in your media library.
  9. Click Upload to upload the image to the component and the image library.

    Repeat steps 4 through 8 for each inflection point that you want to upload an image for.

  10. Continue specifying the properties of the component. For more information, see Creating Components from Component Types.

  11. Once you’ve specified all properties for the component, click Save.

Uploading Files to Existing Components

To add a file to an existing component:
  1. Navigate to the component that you want to upload an image to.

  2. Select the Basic Edit or Advanced Edit mode from the Mode Selector.

    SmartEdit displays the page in the selected mode.

  3. Move your cursor over the component that you want to add an image to.

    SmartEdit displays the contextual menu .

  4. Click the Edit option .

    The component editor appears displaying the Content tab.

  5. In the Media area, click the Upload link in the inflection point that you want to upload an image for.

    An explorer window opens on your desktop.

  6. Navigate to the folder that contains the image that you want to upload.

  7. Select the image that you want to upload and click Open.

  8. Specify the folder that you want the media to be uploaded to.

  9. Specify the details of the image. All fields are mandatory.

    • Name: The name or a description of the image. The name isn’t displayed to your customers;it's for your use only.
    • Alt Text: An alternative text to be displayed when a customer moves the cursor over the component in your Web site.
    • Code: Uniquely identifies the image in your media library.
  10. Click Upload to upload the image to the component and the image library.

    Repeat steps 5 through 9 for each inflection point that you want to upload an image for.

  11. Once you’ve specified all properties for the component, click Save.

Replacing Files in Components

To replace a file in a component:
  1. Navigate to the component that you want to replace an image in.

  2. Select the Basic Edit or Advanced Edit mode from the Mode Selector.

    SmartEdit displays the page in the selected mode.

  3. Move your cursor over the component that you want to replace an image in.

    SmartEdit displays the contextual menu .

  4. Click the Edit option .

    The Component Editor appears displaying the Content tab.

  5. In the Media area, click the Replace link in the inflection point that you want to replace an image.

    An explorer window opens on your desktop.

  6. Navigate to the folder that contains the image that you want to upload.

  7. Select the image that you want to upload and click the Open button.

  8. Specify the folder that you want the media to be uploaded to.

  9. Specify the details of the image. All fields are mandatory.

    • Name: The name or a description of the image. The name isn’t displayed to your customers; it's for your use only.
    • Alt Text: An alternative text to be displayed when a customer moves the cursor over the component in your Web site.
    • Code: Uniquely identifies the image in your media library.
  10. Click Upload to upload the image to the component and the image library.

    Repeat steps 5 through 9 for each inflection point that you want to replace an image in.

  11. Once you’ve replaced the files for all desired inflection points, click the Save button.

Removing Files in Components

To remove a file from a component:
  1. Navigate to the component that you want to remove an image from.

  2. Select the Basic Edit or Advanced Edit mode from the Mode Selector in the upper right of SmartEdit.

    The page is displayed in the selected mode.

  3. Move your cursor over the component that you want to replace an image in.

    SmartEdit displays the contextual menu .

  4. Click the Edit option .

    The component editor appears displaying the Content tab.

  5. In the Media area, click the Remove link in the inflection point that you want to remove an image from.

    Repeat this step for each inflection point that you want to remove an image from.

  6. Once you’ve removed the desired files, click Save.

Troubleshooting

Symptom

In SmartEdit, when you upload media in component editor of some components (for example, Simple Responsive Banner Component), even the image file (for example, with extension name *.jpg) is filtered in the file open dialog, the Selected file type is invalid message is shown after the image file is selected.

Resolution

The file open dialog filters files with extension name, for example, *.jpg and *.png. After you choose a file in the file open dialog, SmartEdit validates the selected file from the image magic byte number perspective with the value of smartedit.validFileMimeTypeCodes.

smartedit.validFileMimeTypeCodes=FFD8FFDB, FFD8FFE0, FFD8FFE1, FFD8FFED, 474946383761, 474946383961, 424D, 49492A00, 4D4D002A, 89504E470D0A1A0A

For instance, all the files with *.jpg can be selected in the file open dialog, however, when a qualified *.jpg file with image magic bytes FFD8FFE2 (which isn't one of FFD8FFDB, FFD8FFE0, FFD8FFE1, FFD8FFED, as defined in the value of smartedit.validFileMimeTypeCodes), is selected, it's identified as invalid, and the Selected file type is invalid message is shown.