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:
- Update the WebSphere Commerce configuration to accept new file extensions:
- Open the WebSphere Commerce configuration file in a text editor.
- Find the Command tag for the AttachmentUpload tag.
- It resembles the following text:
<Command maxuploadsize="10000000" name="AttachmentUpload" supportedFileExtension="gif,jpe,jpg,jpeg,text,txt,mpg,mpeg,mov,avi,qt,jar" uploadReturnURL_enabled="true" viruscheck="no" />- 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.
- The file extensions must be in a comma-separated list.
- Save your changes.
- Propagate your changes to the WebSphere Commerce configuration file.
- Update the WAS configuration to enable the previewing of any new file extensions on the Show Attachments page:
- Open the WAS console.
Refer to the Start and logging off the console topic in the WAS Information Center.
- Select Environment > Virtual Hosts.
- Click VT_instance_Preview.
- Click MIME Types.
- Click New.
- Type the new MIME type and its extensions and click OK. Repeat this step until have added MIME types for all new file extensions.
- Save your changes to the master configuration.
- Regenerate the Web server plug-in configuration:
- Select Servers > Web servers, then select your WebSphere Commerce Web server.
- Click Generate Plug-in, then click Propagate Plug-in.
- Restart your WebSphere Commerce Web server.
- Stop and restart WebSphere Commerce.
Related concepts
Related tasks
Related reference