Change accepted file extensions


Only a file with an accepted file extension can be uploaded as a managed file through WebSphere Commerce Accelerator.

To change the accepted file extensions:

  1. Update the WebSphere Commerce configuration to accept new file extensions:

    1. Open the WebSphere Commerce configuration file in a text editor.

    2. Find the Command tag for the AttachmentUpload tag.

    3. It resembles the following text:

    4. <Command maxuploadsize="10000000"
               name="AttachmentUpload"
               supportedFileExtension="gif,jpe,jpg,jpeg,text,txt,mpg,mpeg,mov,avi,qt,jar"
               uploadReturnURL_enabled="true"
               viruscheck="no" />
      
      
      
      

    5. Change the supportedFileExtension element so that it contains the file extensions for all of the files that you want to be able to upload through WebSphere Commerce Accelerator.

    6. The file extensions must be in a comma-separated list.

    7. Save your changes.

    8. Propagate your changes to the WebSphere Commerce configuration file.

  2. Update the WAS configuration to enable the previewing of any new file extensions on the Show Attachments page:

    1. Open the WAS console.

      Refer to the Start and logging off the console topic in the WAS Information Center.

    2. Select Environment > Virtual Hosts.

    3. Click VT_instance_Preview.

    4. Click MIME Types.

    5. Click New.

    6. Type the new MIME type and its extensions and click OK. Repeat this step until have added MIME types for all new file extensions.

    7. Save your changes to the master configuration.

    8. Regenerate the Web server plug-in configuration:

      1. Select Servers > Web servers, then select your WebSphere Commerce Web server.

      2. Click Generate Plug-in, then click Propagate Plug-in.

  3. Restart your WebSphere Commerce Web server.

  4. Stop and restart WebSphere Commerce.

Related concepts

Related tasks

Related reference